mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Merge pull request #67 from nventive/dev/nich/prog-bugs
Fixed android margins, and prog numpad not displaying
This commit is contained in:
commit
ec26223eaf
3 changed files with 12 additions and 5 deletions
|
@ -268,7 +268,9 @@ namespace CalculatorApp.ViewModel
|
|||
}
|
||||
}
|
||||
|
||||
public bool IsBinaryBitFlippingEnabled
|
||||
public bool IsBitFlipCheckedOppositeValue => !IsBitFlipChecked;
|
||||
|
||||
public bool IsBinaryBitFlippingEnabled
|
||||
{
|
||||
get
|
||||
{
|
||||
|
|
|
@ -75,7 +75,8 @@
|
|||
Style="{StaticResource ProgKeypadRadioButtonStyle}"
|
||||
AutomationProperties.AutomationId="fullKeypad"
|
||||
Content=""
|
||||
IsChecked="{x:Bind Model.IsBitFlipChecked, Converter={StaticResource BooleanNegationConverter}, Mode=TwoWay}" />
|
||||
Visibility="Visible"
|
||||
IsChecked="{x:Bind Model.IsBitFlipCheckedOppositeValue}" />
|
||||
|
||||
<RadioButton x:Name="bitFlip"
|
||||
x:Uid="bitFlip"
|
||||
|
|
|
@ -5,9 +5,11 @@
|
|||
xmlns:controls="using:CalculatorApp.Controls"
|
||||
xmlns:designdata="using:CalculatorApp.DesignData"
|
||||
xmlns:local="using:CalculatorApp.Views"
|
||||
xmlns:android="http://nventive.com/android"
|
||||
xmlns:not_android="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
x:Name="ControlRoot"
|
||||
mc:Ignorable="">
|
||||
mc:Ignorable="android">
|
||||
|
||||
<UserControl.Resources>
|
||||
<!-- Programmer mode display radio button -->
|
||||
|
@ -112,7 +114,8 @@
|
|||
|
||||
<TextBlock x:Name="ContentPresenter"
|
||||
Grid.Column="2"
|
||||
Margin="0,2,4,-2"
|
||||
not_android:Margin="0,2,4,-2"
|
||||
android:Margin="4,0,0,0"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Foreground="{ThemeResource SystemControlForegroundBaseHighBrush}"
|
||||
|
@ -158,7 +161,8 @@
|
|||
|
||||
<TextBlock x:Name="CheckedContentPresenter"
|
||||
Grid.Column="2"
|
||||
Margin="0,2,4,-2"
|
||||
not_android:Margin="0,2,4,-2"
|
||||
android:Margin="4,0,0,0"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Foreground="{ThemeResource SystemControlHighlightAltBaseHighBrush}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue