This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
84 lines (81 loc) · 4.44 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
<Window x:Class="Timer.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
MouseDown="OnBackgroundClick"
Title="Таймер"
Height="450" Width="800">
<Grid>
<Grid Name="Layout">
<Grid.Resources>
<Style TargetType="TextBox">
<Setter Property="TextAlignment" Value="Center"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="FontSize" Value="20"/>
</Style>
<Style TargetType="TextBlock">
<Setter Property="TextAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="FontSize" Value="20"/>
</Style>
<Style TargetType="Button">
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Foreground" Value="Gray"/>
<Setter Property="Padding" Value="10"/>
<Setter Property="Background" Value="WhiteSmoke"/>
</Style>
</Grid.Resources>
<Grid.Effect>
<BlurEffect Radius="0"/>
</Grid.Effect>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBox Name="TitleOne" MouseWheel="OnMouseWheelResize"/>
<ProgressBar Name="ProgressBar" Visibility="Hidden" Grid.Row="1" VerticalAlignment="Top"/>
<StackPanel Grid.Row="1" VerticalAlignment="Top" SizeChanged="OnCurrentTimerSizeChanged">
<TextBlock Name="TimerOne" Text="Таймер не выбран" MouseWheel="OnMouseWheelResize" FontSize="60"/>
<TextBlock Name="Title" Margin="0 0 0 10" MouseWheel="OnMouseWheelResize"/>
</StackPanel>
<Grid Grid.Row="2">
<StackPanel Orientation="Horizontal">
<Button Content="Добавить" Click="OnClickAddTimer"/>
<Button Content="Удалить" Name="RemoveBtn" Visibility="Collapsed" Click="OnClickRemoveSelected"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<Button Content="Старт" Name="StartBtn" Click="OnClickStartTimer" Visibility="Collapsed"/>
<Button Content="Пауза" Name="PauseBtn" Click="OnClickPauseTimer" Visibility="Collapsed"/>
<Button Content="Сброс" Name="DropBtn" Click="OnClickDropTimer" Visibility="Collapsed"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<Button Content="Выбрать звук" Name="MusicBtn" Click="OnClickSelectMusic" Visibility="Collapsed"/>
<Button Content="Следующий" Name="NextBtn" Click="OnClickSetupNext" Visibility="Collapsed"/>
</StackPanel>
</Grid>
<ListView Name="List" Grid.Row="3" BorderThickness="0" Padding="0" Margin="0">
<ListView.Resources>
<Style TargetType="ListViewItem">
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Margin" Value="0"/>
<Setter Property="Padding" Value="0"/>
</Style>
</ListView.Resources>
<ItemsControl.ItemTemplate>
<ItemContainerTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Title}" Margin="4"/>
<TextBlock Text="{Binding AsText}" Margin="4"/>
</StackPanel>
</ItemContainerTemplate>
</ItemsControl.ItemTemplate>
</ListView>
</Grid>
<ContentControl Name="ModalControl"/>
</Grid>
</Window>