-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetLongTermGoalWindow.xaml
More file actions
116 lines (112 loc) · 6.58 KB
/
SetLongTermGoalWindow.xaml
File metadata and controls
116 lines (112 loc) · 6.58 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
<Window x:Class="TimeTask.SetLongTermGoalWindow"
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"
xmlns:local="clr-namespace:TimeTask"
mc:Ignorable="d"
Title="{local:Loc Key=SetGoal_WindowTitle}" Height="400" Width="500"
WindowStartupLocation="CenterOwner"
ResizeMode="NoResize">
<Grid Margin="25">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="{local:Loc Key=SetGoal_TypeTitle}" FontWeight="Bold" FontSize="14" Margin="0,0,0,15"/>
<StackPanel Grid.Row="1" Orientation="Horizontal" Margin="0,0,0,20">
<RadioButton Name="NormalGoalRadioButton" Content="{local:Loc Key=SetGoal_TypeNormal}" Margin="0,0,25,0" IsChecked="True" Checked="GoalType_Checked" FontSize="13"/>
<RadioButton Name="LearningPlanRadioButton" Content="{local:Loc Key=SetGoal_TypeLearning}" Checked="GoalType_Checked" FontSize="13"/>
</StackPanel>
<TextBlock Grid.Row="2" Name="GoalDescriptionLabel" Text="{local:Loc Key=SetGoal_LabelDescription}" FontWeight="Bold" FontSize="13" Margin="0,0,0,8"/>
<TextBox Name="GoalDescriptionTextBox" Grid.Row="3" Height="80" AcceptsReturn="True" TextWrapping="Wrap"
Margin="0,0,0,15" Padding="10" FontSize="12" BorderBrush="#FFCCCCCC">
<TextBox.Style>
<Style TargetType="TextBox">
<Style.Triggers>
<Trigger Property="Text" Value="">
<Setter Property="Background">
<Setter.Value>
<VisualBrush AlignmentX="Left" AlignmentY="Top" Stretch="None">
<VisualBrush.Visual>
<TextBlock Text="{local:Loc Key=SetGoal_PlaceholderDescription}" Foreground="Gray" FontStyle="Italic" Margin="10,8,0,0"/>
</VisualBrush.Visual>
</VisualBrush>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
</TextBox.Style>
</TextBox>
<TextBlock Grid.Row="4" Name="DurationLabel" Text="{local:Loc Key=SetGoal_LabelDuration}" FontWeight="Bold" FontSize="13" Margin="0,0,0,8"/>
<TextBox Name="DurationTextBox" Grid.Row="5" Margin="0,0,0,15" Padding="10" FontSize="12" BorderBrush="#FFCCCCCC">
<TextBox.Style>
<Style TargetType="TextBox">
<Style.Triggers>
<Trigger Property="Text" Value="">
<Setter Property="Background">
<Setter.Value>
<VisualBrush AlignmentX="Left" AlignmentY="Top" Stretch="None">
<VisualBrush.Visual>
<TextBlock Text="{local:Loc Key=SetGoal_PlaceholderDuration}" Foreground="Gray" FontStyle="Italic" Margin="10,8,0,0"/>
</VisualBrush.Visual>
</VisualBrush>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
</TextBox.Style>
</TextBox>
<StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,0,0">
<Button Name="SubmitButton" Content="{local:Loc Key=SetGoal_ButtonCreate}" Width="110" Height="35" Margin="0,0,10,0" Click="SubmitButton_Click"
Background="#FF4CAF50" Foreground="White" FontWeight="Bold" FontSize="13" BorderThickness="0">
<Button.Style>
<Style TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" CornerRadius="5" Padding="15,8">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#FF45A049"/>
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
<Button Name="CancelButton" Content="{local:Loc Key=SetGoal_ButtonCancel}" Width="90" Height="35" Click="CancelButton_Click" IsCancel="True"
Background="#FF9E9E9E" Foreground="White" FontWeight="Bold" FontSize="13" BorderThickness="0">
<Button.Style>
<Style TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" CornerRadius="5" Padding="15,8">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#FF757575"/>
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
</StackPanel>
</Grid>
</Window>