-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathItemDialog.xaml
48 lines (40 loc) · 2.71 KB
/
ItemDialog.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
<Window x:Class="TimelineCreator.ItemDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:TimelineCreator.Controls"
Title="Add Item to Timeline" Width="380" Height="Auto" ResizeMode="NoResize" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" Loaded="Window_Loaded" SizeToContent="Height" UseLayoutRounding="True">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Margin="10">
<Grid VerticalAlignment="Top">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="5"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<local:DateTimeField x:Name="theTimeField" ValueChanged="TheTimeField_ValueChanged" ValidationError="Field_ValidationError"/>
<local:TZeroTimeField x:Name="theTZeroField" ValueChanged="TheTZeroField_ValueChanged" ValidationError="Field_ValidationError" Visibility="Collapsed"/>
<Button Content="Now" HorizontalAlignment="Right" Click="NowButton_Click" Grid.Column="2"/>
</Grid>
<TextBox x:Name="theTextBox" TextWrapping="Wrap" Height="108" MaxLines="1" Padding="4,3,4,0" Margin="0,5,0,0"/>
<CheckBox x:Name="importantCheckBox" Content="Mark item as important (shows a red exclamation mark)" Margin="0,5,0,10"/>
</StackPanel>
<Border Background="LightGray" Grid.Row="1">
<Grid Margin="10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<CheckBox x:Name="tZeroCheckBox" HorizontalAlignment="Left" VerticalAlignment="Center" Content="Time relative to T-0" Checked="TZeroCheckBox_CheckedChanged" Unchecked="TZeroCheckBox_CheckedChanged" IsEnabled="False"/>
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Grid.Column="1">
<Button x:Name="submitButton" Content="Add Item" Margin="0,0,5,0" Width="80" Click="SubmitButton_Click" IsDefault="True" FontWeight="Bold"/>
<Button x:Name="deleteButton" Content="" FontFamily="Segoe UI Symbol" Padding="0" Margin="0,0,5,0" Click="DeleteButton_Click" Width="26" Visibility="Collapsed"/>
<Button Content="Cancel" IsCancel="True"/>
</StackPanel>
</Grid>
</Border>
</Grid>
</Window>