12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <UserControl xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:dialogs="clr-namespace:InABox.Avalonia.Dialogs"
- xmlns:components="clr-namespace:InABox.Avalonia.Components"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- x:Class="InABox.Avalonia.Dialogs.DoubleDialogView"
- x:DataType="dialogs:DoubleDialogViewModel">
-
- <Grid>
-
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
-
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
-
- <Label
- Grid.Row="0"
- Grid.Column="0"
- Grid.ColumnSpan="3"
- Margin="0,0,0,10"
- Content="{Binding Title}" />
-
- <Grid
- Grid.Row="1"
- Grid.Column="0"
- Grid.ColumnSpan="3"
- Margin="0,0,0,10">
-
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
-
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Button Classes="Standard" Content="+/-" Grid.Row="0" Grid.Column="0" Command="{Binding NegativePressedCommand}" />
- <TextBox
- Grid.Row="0"
- Grid.Column="1"
- Grid.ColumnSpan="2"
- Text="{Binding Text}"
- VerticalContentAlignment="Center"
- HorizontalContentAlignment="Center"
- Margin="{DynamicResource PrsControlSpacing}" />
-
- <Button Classes="Standard" Content="1" Grid.Row="1" Grid.Column="0" Command="{Binding KeyPressedCommand}" CommandParameter="1" Height="60" />
- <Button Classes="Standard" Content="2" Grid.Row="1" Grid.Column="1" Command="{Binding KeyPressedCommand}" CommandParameter="2" Height="60"/>
- <Button Classes="Standard" Content="3" Grid.Row="1" Grid.Column="2" Command="{Binding KeyPressedCommand}" CommandParameter="3" Height="60"/>
-
- <Button Classes="Standard" Content="4" Grid.Row="2" Grid.Column="0" Command="{Binding KeyPressedCommand}" CommandParameter="4" Height="60" />
- <Button Classes="Standard" Content="5" Grid.Row="2" Grid.Column="1" Command="{Binding KeyPressedCommand}" CommandParameter="5" Height="60" />
- <Button Classes="Standard" Content="6" Grid.Row="2" Grid.Column="2" Command="{Binding KeyPressedCommand}" CommandParameter="6" Height="60" />
-
- <Button Classes="Standard" Content="7" Grid.Row="3" Grid.Column="0" Command="{Binding KeyPressedCommand}" CommandParameter="7" Height="60" />
- <Button Classes="Standard" Content="8" Grid.Row="3" Grid.Column="1" Command="{Binding KeyPressedCommand}" CommandParameter="8" Height="60" />
- <Button Classes="Standard" Content="9" Grid.Row="3" Grid.Column="2" Command="{Binding KeyPressedCommand}" CommandParameter="9" Height="60" />
- <Button Classes="Standard" Content="Del" Grid.Row="4" Grid.Column="0" Command="{Binding BackPressedCommand}" Height="60" />
- <Button Classes="Standard" Content="0" Grid.Row="4" Grid.Column="1" Command="{Binding KeyPressedCommand}" CommandParameter="0" Height="60" />
- <Button Classes="Standard" Content="." Grid.Row="4" Grid.Column="2" Command="{Binding DecimalPressedCommand}" CommandParameter="." Height="60" />
-
- </Grid>
-
- <Button
- Grid.Row="2"
- Grid.Column="0"
- Content="Cancel"
- Command="{Binding CancelCommand}"
- Classes="Standard"/>
-
- <Button
- Grid.Row="2"
- Grid.Column="2"
- Content="OK"
- Command="{Binding OkCommand}"
- Classes="Standard"/>
- </Grid>
-
- </UserControl>
|