Merge pull request #67 from nventive/dev/nich/prog-bugs

Fixed android margins, and prog numpad not displaying
This commit is contained in:
NicolasChampagne 2019-05-27 13:10:27 -04:00 committed by GitHub
commit ec26223eaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 5 deletions

View file

@ -268,7 +268,9 @@ namespace CalculatorApp.ViewModel
} }
} }
public bool IsBinaryBitFlippingEnabled public bool IsBitFlipCheckedOppositeValue => !IsBitFlipChecked;
public bool IsBinaryBitFlippingEnabled
{ {
get get
{ {

View file

@ -75,7 +75,8 @@
Style="{StaticResource ProgKeypadRadioButtonStyle}" Style="{StaticResource ProgKeypadRadioButtonStyle}"
AutomationProperties.AutomationId="fullKeypad" AutomationProperties.AutomationId="fullKeypad"
Content="" Content=""
IsChecked="{x:Bind Model.IsBitFlipChecked, Converter={StaticResource BooleanNegationConverter}, Mode=TwoWay}" /> Visibility="Visible"
IsChecked="{x:Bind Model.IsBitFlipCheckedOppositeValue}" />
<RadioButton x:Name="bitFlip" <RadioButton x:Name="bitFlip"
x:Uid="bitFlip" x:Uid="bitFlip"

View file

@ -5,9 +5,11 @@
xmlns:controls="using:CalculatorApp.Controls" xmlns:controls="using:CalculatorApp.Controls"
xmlns:designdata="using:CalculatorApp.DesignData" xmlns:designdata="using:CalculatorApp.DesignData"
xmlns:local="using:CalculatorApp.Views" 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" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
x:Name="ControlRoot" x:Name="ControlRoot"
mc:Ignorable=""> mc:Ignorable="android">
<UserControl.Resources> <UserControl.Resources>
<!-- Programmer mode display radio button --> <!-- Programmer mode display radio button -->
@ -112,7 +114,8 @@
<TextBlock x:Name="ContentPresenter" <TextBlock x:Name="ContentPresenter"
Grid.Column="2" Grid.Column="2"
Margin="0,2,4,-2" not_android:Margin="0,2,4,-2"
android:Margin="4,0,0,0"
HorizontalAlignment="Left" HorizontalAlignment="Left"
VerticalAlignment="Center" VerticalAlignment="Center"
Foreground="{ThemeResource SystemControlForegroundBaseHighBrush}" Foreground="{ThemeResource SystemControlForegroundBaseHighBrush}"
@ -158,7 +161,8 @@
<TextBlock x:Name="CheckedContentPresenter" <TextBlock x:Name="CheckedContentPresenter"
Grid.Column="2" Grid.Column="2"
Margin="0,2,4,-2" not_android:Margin="0,2,4,-2"
android:Margin="4,0,0,0"
HorizontalAlignment="Left" HorizontalAlignment="Left"
VerticalAlignment="Center" VerticalAlignment="Center"
Foreground="{ThemeResource SystemControlHighlightAltBaseHighBrush}" Foreground="{ThemeResource SystemControlHighlightAltBaseHighBrush}"