-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainWindow.xaml
103 lines (90 loc) · 8.15 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<Window x:Class="DensityOfWaterAlcoholSolution.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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"
mc:Ignorable="d"
Title="Калькулятор спирта" Height="650" Width="1000"
ResizeMode="NoResize" WindowStyle="ThreeDBorderWindow">
<Grid Style="{DynamicResource BackGroundGrid}">
<Grid.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<LinearGradientBrush.RelativeTransform>
<TransformGroup>
<ScaleTransform CenterY="0.5" CenterX="0.5"/>
<SkewTransform CenterX="0.5" CenterY="0.5"/>
<RotateTransform Angle="132.064" CenterX="0.5" CenterY="0.5"/>
<TranslateTransform/>
</TransformGroup>
</LinearGradientBrush.RelativeTransform>
<GradientStop Color="#FFB6CCC6"/>
<GradientStop Color="#FF02F9F3" Offset="1"/>
<GradientStop Color="#FF84FCAC" Offset="0.485"/>
</LinearGradientBrush>
</Grid.Background>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<TextBlock Style="{DynamicResource HeaderText}" Grid.Column="3" FontSize="32" FontFamily="Bahnschrift Light Condensed" Foreground="Black" TextAlignment="Right"><Run Text="Калькулятор "/><LineBreak/><Run Text="спирта"/></TextBlock>
<TextBlock x:Name="textBlock" Style="{DynamicResource CalcDescriptionText}" Grid.ColumnSpan="2" Grid.Row="1" Foreground="Black" FontFamily="Bahnschrift Light Condensed" FontSize="35"><Run Text="Найти плотность "/><LineBreak/><Run Text="раствора"/></TextBlock>
<TextBlock Style="{DynamicResource CalcDescriptionText}" Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="1" Foreground="Black" FontFamily="Bahnschrift Light Condensed" FontSize="35" ><Run Text="Найти содержание "/><LineBreak/><Run Text="этанола"/></TextBlock>
<Grid Name="DensityCalcGrid" Grid.Row="2" Grid.RowSpan="3" Grid.ColumnSpan="2" >
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Style="{DynamicResource ExampleTextBlock}" Foreground="Black" FontFamily="Bahnschrift Light Condensed" FontSize="25"><Run Text="Содержание этанола "/><Run Text="%"/><Run Text=" "/><LineBreak/><Run Text="(при 20С"/><Run Text=" "/><Run Text="по объёму) "/></TextBlock>
<TextBlock Style="{DynamicResource ExampleTextBlock}" Grid.Row="1" Text="Температура °C" Foreground="Black" FontFamily="Bahnschrift Light Condensed" FontSize="25"/>
<TextBox Name="EthanolContainmentTB" Grid.Column="1" PreviewTextInput="NumberValidationTextBox" Style="{StaticResource MyTextBox}" Opacity="1" BorderThickness="1" BorderBrush="Black" Foreground="Black" SelectionBrush="Black" SelectionTextBrush="Black" Background="#1FFF" FontFamily="Bahnschrift Light SemiCondensed" FontSize="17"/>
<TextBox Name="LeftTempTB" Grid.Column="1" Grid.Row="1" PreviewTextInput="NumberValidationTextBox" Style="{StaticResource MyTextBox}" Opacity="1" BorderThickness="1" BorderBrush="Black" Foreground="Black" SelectionBrush="Black" SelectionTextBrush="Black" Background="#1FFF" FontFamily="Bahnschrift Light SemiCondensed" FontSize="17"/>
<TextBox Name="SolutinDenResultTB" Grid.ColumnSpan="2" Grid.Row="2" VerticalAlignment="Top" HorizontalAlignment="Center" Width="170" Margin="0 10 0 0" IsReadOnly="True" Style="{DynamicResource MyTextBox_2}" BorderBrush="{x:Null}" FontFamily="Bahnschrift Light SemiCondensed" FontSize="17" TextAlignment="Center" ></TextBox>
<Button Grid.Row="2" Grid.ColumnSpan="2" Content="Вычислить" Click="SolutionDensityBtn" Template="{StaticResource Button_Template}" Style="{DynamicResource ButtonAdjastment}" FontFamily="Bahnschrift Light Condensed" FontSize="17" RenderTransformOrigin="0.19,0.567" HorizontalAlignment="Left" Margin="200,0,0,10"/>
<Button Grid.Row="2" Content="?" Click="MoreInfo" Template="{StaticResource Button_Template}" Style="{DynamicResource ButtonAdjastment}" FontFamily="Bahnschrift Light Condensed" FontSize="17" RenderTransformOrigin="0.19,0.567" HorizontalAlignment="Left" Width="29" Margin="2,0,0,2" Opacity="0.6"/>
</Grid>
<Grid Name="EthanolContainmentCalcGrid" Grid.Row="2" Grid.Column="2" Grid.ColumnSpan="2" Grid.RowSpan="3">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Style="{DynamicResource ExampleTextBlock}" Foreground="Black" FontFamily="Bahnschrift Light Condensed" FontSize="25"><Run Text="Плотность"/><Run Text=" "/><Run/><LineBreak/><Run Text="г"/><Run Text="/"/><Run Text="мл"/><Run Text=" "/></TextBlock>
<TextBlock Style="{DynamicResource ExampleTextBlock}" Grid.Row="1" TextWrapping="Wrap" Foreground="Black" FontFamily="Bahnschrift Light Condensed" FontSize="25"><Run Text="Температура"/><Run Language="ru-ru" Text=" "/><Run Text="°C"/></TextBlock>
<TextBox Name="SolutionDensityTB" Grid.Column="1" PreviewTextInput="NumberValidationTextBox" Style="{StaticResource MyTextBox}" Opacity="1" BorderThickness="1" BorderBrush="Black" Foreground="Black" SelectionBrush="Black" SelectionTextBrush="Black" Background="#1FFF" FontFamily="Bahnschrift Light SemiCondensed" FontSize="17"/>
<TextBox Name="SolutionTemperatureTB" Grid.Column="1" Grid.Row="1" PreviewTextInput="NumberValidationTextBox" Style="{StaticResource MyTextBox}" Opacity="1" BorderThickness="1" BorderBrush="Black" Foreground="Black" SelectionBrush="Black" SelectionTextBrush="Black" Background="#1FFF" FontFamily="Bahnschrift Light SemiCondensed" FontSize="17"/>
<TextBox Name="SolutinEthanolResultTB" Grid.ColumnSpan="2" Grid.Row="2" VerticalAlignment="Top" HorizontalAlignment="Center" Width="170" Margin="0 10 0 0" IsReadOnly="True" Style="{DynamicResource MyTextBox_2}" BorderBrush="{x:Null}" FontFamily="Bahnschrift Light SemiCondensed" FontSize="17" TextAlignment="Center" ></TextBox>
<Button Grid.Row="2" Grid.ColumnSpan="2" Content="Вычислить" Click="EthanolContainmentBtn" Template="{StaticResource Button_Template}" Style="{DynamicResource ButtonAdjastment}" FontFamily="Bahnschrift Light Condensed" FontSize="17"/>
</Grid>
<Image x:Name="Логотип_Copy" Margin="136,80,136,80" Source="/Центр_ИКТ-transformed.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5" Panel.ZIndex="-2" Grid.RowSpan="3" Opacity="0.6" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1">
<Image.Effect>
<BlurEffect/>
</Image.Effect>
<Image.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="0"/>
<TranslateTransform/>
</TransformGroup>
</Image.RenderTransform>
</Image>
</Grid>
</Window>