MainWindow.xaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <Window x:Class="numbersystem.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:numbersystem"
  7. mc:Ignorable="d"
  8. Title="Система счислений" Height="550" Width="350" ResizeMode="NoResize" Icon="/icon.png" FontFamily="Montserrat Light">
  9. <Window.Resources>
  10. <Style TargetType="Button">
  11. <Setter Property="ItemsControl.Background" Value="#8888d7"/>
  12. <Setter Property="ItemsControl.Foreground" Value="White"/>
  13. <Setter Property="ItemsControl.Margin" Value="10"/>
  14. </Style>
  15. </Window.Resources>
  16. <Grid>
  17. <TabControl>
  18. <TabItem Header="Калькулятор" FontFamily="Montserrat Light">
  19. <Grid Background="#d7d7f2">
  20. <Grid.RowDefinitions>
  21. <RowDefinition/>
  22. <RowDefinition/>
  23. <RowDefinition/>
  24. <RowDefinition/>
  25. <RowDefinition/>
  26. <RowDefinition/>
  27. <RowDefinition/>
  28. <RowDefinition/>
  29. </Grid.RowDefinitions>
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition/>
  32. <ColumnDefinition/>
  33. <ColumnDefinition/>
  34. <ColumnDefinition/>
  35. </Grid.ColumnDefinitions>
  36. <TextBox IsReadOnly="True" Grid.Row="0" Grid.ColumnSpan="4" Margin="10"
  37. FontSize="16" HorizontalScrollBarVisibility="Auto"
  38. VerticalContentAlignment="Center" HorizontalContentAlignment="Right"/>
  39. <Label Content="Выберите СС:" Grid.Row="1" Grid.ColumnSpan="2" Margin="10,10,43,10" FontSize="14"/>
  40. <ComboBox Margin="48,10,10,30" Grid.ColumnSpan="3" Grid.Column="1" Grid.Row="1">
  41. <TextBlock Text="Двоичная"/>
  42. <TextBlock Text="Троичная"/>
  43. <TextBlock Text="Восьмеричная"/>
  44. <TextBlock Text="Шестнадцатиричная"/>
  45. </ComboBox>
  46. <Button Content="CA" Grid.Row="5" Grid.Column="0"/>
  47. <Button Content="0" Grid.Row="5" Grid.Column="1"/>
  48. <Button Content="⌫" Grid.Row="5" Grid.Column="2"/>
  49. <Button Content="1" Grid.Row="4" Grid.Column="0"/>
  50. <Button Content="2" Grid.Row="4" Grid.Column="1"/>
  51. <Button Content="3" Grid.Row="4" Grid.Column="2"/>
  52. <Button Content="4" Grid.Row="3" Grid.Column="0"/>
  53. <Button Content="5" Grid.Row="3" Grid.Column="1"/>
  54. <Button Content="6" Grid.Row="3" Grid.Column="2"/>
  55. <Button Content="7" Grid.Row="2" Grid.Column="0"/>
  56. <Button Content="8" Grid.Row="2" Grid.Column="1"/>
  57. <Button Content="9" Grid.Row="2" Grid.Column="2"/>
  58. <Button Content="A" Grid.Row="6" Grid.Column="0" Background="#6c6cdf"/>
  59. <Button Content="B" Grid.Row="6" Grid.Column="1" Background="#6c6cdf"/>
  60. <Button Content="C" Grid.Row="6" Grid.Column="2" Background="#6c6cdf"/>
  61. <Button Content="D" Grid.Row="7" Grid.Column="0" Background="#6c6cdf"/>
  62. <Button Content="E" Grid.Row="7" Grid.Column="1" Background="#6c6cdf"/>
  63. <Button Content="F" Grid.Row="7" Grid.Column="2" Background="#6c6cdf"/>
  64. <Button Content="+" Grid.Row="2" Grid.Column="3" Background="#4040bf"/>
  65. <Button Content="-" Grid.Row="3" Grid.Column="3" Background="#4040bf"/>
  66. <Button Content="×" Grid.Row="4" Grid.Column="3" Background="#4040bf"/>
  67. <Button Content="÷" Grid.Row="5" Grid.Column="3" Background="#4040bf"/>
  68. <Button Content="%" Grid.Row="6" Grid.Column="3" Background="#4040bf"/>
  69. <Button Content="=" Grid.Row="7" Grid.Column="3" Background="#4040bf"/>
  70. </Grid>
  71. </TabItem>
  72. <TabItem Header="История" FontFamily="Montserrat Light">
  73. <Grid Background="#d7d7f2"/>
  74. </TabItem>
  75. <TabItem Header="Диаграмма" FontFamily="Montserrat Light">
  76. <Grid Background="#d7d7f2"/>
  77. </TabItem>
  78. </TabControl>
  79. </Grid>
  80. </Window>