Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.23 KB | None | 0 0
  1. <UserControl.Styles>
  2.         <Style
  3.            Selector="Button.KeyboardButton">
  4.             <Setter
  5.                Property="Command"
  6.                Value="{Binding OnKeyClicked}" />
  7.         </Style>
  8.     </UserControl.Styles>
  9.  
  10.     <Grid
  11.        Classes="DefaultForm"
  12.        ColumnDefinitions="*,*,*"
  13.        RowDefinitions="*,*,*,*">
  14.  
  15.         <!-- TODO: uncomment -->
  16.  
  17.         <!-- 123 -->
  18.         <Button
  19.            Grid.Column="0"
  20.            Grid.Row="0"
  21.            Content="1"
  22.            CommandParameter="1"
  23.            Classes="KeyboardButton"/>
  24.         <!-- Style="{StaticResource KeyboardButton}" -->
  25.  
  26.         <Button
  27.            Grid.Column="1"
  28.            Grid.Row="0"
  29.            Content="2"
  30.            CommandParameter="2"
  31.            Classes="KeyboardButton"/>
  32.         <!-- Style="{StaticResource KeyboardButton}" -->
  33.  
  34.         <Button
  35.            Grid.Column="2"
  36.            Grid.Row="0"
  37.            Content="3"
  38.            CommandParameter="3"
  39.            Classes="KeyboardButton"/>
  40.         <!-- Style="{StaticResource KeyboardButton}" -->
  41.  
  42.         <!-- 456 -->
  43.         <Button
  44.            Grid.Column="0"
  45.            Grid.Row="1"
  46.            Content="4"
  47.            CommandParameter="4"
  48.            Classes="KeyboardButton"/>
  49.         <!-- Style="{StaticResource KeyboardButton}" -->
  50.  
  51.         <Button
  52.            Grid.Column="1"
  53.            Grid.Row="1"
  54.            Content="5"
  55.            CommandParameter="5"
  56.            Classes="KeyboardButton"/>
  57.         <!-- Style="{StaticResource KeyboardButton}" -->
  58.  
  59.         <Button
  60.            Grid.Column="2"
  61.            Grid.Row="1"
  62.            Content="6"
  63.            CommandParameter="6"
  64.            Classes="KeyboardButton"/>
  65.         <!-- Style="{StaticResource KeyboardButton}" -->
  66.  
  67.         <!-- 789 -->
  68.         <Button
  69.            Grid.Column="0"
  70.            Grid.Row="2"
  71.            Content="7"
  72.            CommandParameter="7"
  73.            Classes="KeyboardButton"/>
  74.         <!-- Style="{StaticResource KeyboardButton}" -->
  75.  
  76.         <Button
  77.            Grid.Column="1"
  78.            Grid.Row="2"
  79.            Content="8"
  80.            CommandParameter="8"
  81.            Classes="KeyboardButton"/>
  82.         <!-- Style="{StaticResource KeyboardButton}" -->
  83.  
  84.         <Button
  85.            Grid.Column="2"
  86.            Grid.Row="2"
  87.            Content="9"
  88.            CommandParameter="9"
  89.            Classes="KeyboardButton"/>
  90.         <!-- Style="{StaticResource KeyboardButton}" -->
  91.  
  92.         <!-- C0← -->
  93.         <Button
  94.            Grid.Column="0"
  95.            Grid.Row="3"
  96.            Content="C"
  97.            CommandParameter="1"
  98.            Command="{Binding OnClearClicked}" />
  99.         <!-- Style="{StaticResource ClearButton}" -->
  100.  
  101.         <Button
  102.            Grid.Column="1"
  103.            Grid.Row="3"
  104.            Content="0"
  105.            CommandParameter="0"
  106.            Classes="KeyboardButton"/>
  107.         <!-- Style="{StaticResource KeyboardButton}" -->
  108.  
  109.         <!-- TODO: replace for symbol-->
  110.         <Button
  111.            Grid.Column="2"
  112.            Grid.Row="3"
  113.            Content="Backspace"
  114.            Command="{Binding OnBackspaceClicked}" />
  115.         <!-- Style="{StaticResource BackspaceButton}" -->
  116.     </Grid>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement