-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGoalDetailView.xaml
More file actions
60 lines (55 loc) · 2.64 KB
/
Copy pathGoalDetailView.xaml
File metadata and controls
60 lines (55 loc) · 2.64 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
<Window x:Class="Goal_Tracker.GoalDetailView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Goal Details"
Height="400" Width="600"
WindowStyle="ToolWindow"
SizeToContent="Manual"
ResizeMode="CanResize"
MinHeight="400" MinWidth="600">
<Grid Margin="10">
<!-- Define rows -->
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<!-- Title -->
<RowDefinition Height="Auto"/>
<!-- Name Label -->
<RowDefinition Height="Auto"/>
<!-- Name Input -->
<RowDefinition Height="Auto"/>
<!-- Description Label -->
<RowDefinition Height="*"/>
<!-- Description Input (Expands) -->
<RowDefinition Height="Auto"/>
<!-- Difficulty Label -->
<RowDefinition Height="Auto"/>
<!-- Difficulty Input -->
<RowDefinition Height="Auto"/>
<!-- Buttons -->
</Grid.RowDefinitions>
<!-- Title -->
<TextBlock Text="Goal Settings" FontSize="20" FontWeight="Bold"
HorizontalAlignment="Center" Grid.Row="0" Margin="0,0,0,10"/>
<!-- Name Label -->
<TextBlock Text="Name:" FontWeight="Bold" Grid.Row="1" VerticalAlignment="Center"/>
<!-- Name Input -->
<TextBox Name="GoalNameTextBox" Text="{Binding Name}" FontSize="14"
Grid.Row="2" Margin="0,5,0,10"/>
<!-- Description Label -->
<TextBlock Text="Description:" FontWeight="Bold" Grid.Row="3" VerticalAlignment="Center"/>
<!-- Description Box (Expands) -->
<TextBox Name="GoalDescriptionTextBox" Text="{Binding Description}" FontSize="14"
Grid.Row="4" AcceptsReturn="True" VerticalScrollBarVisibility="Auto"
Margin="0,5,0,10" TextWrapping="Wrap"/>
<!-- Difficulty Label -->
<TextBlock Text="Difficulty Tier:" FontWeight="Bold" Grid.Row="5" VerticalAlignment="Center"/>
<!-- Difficulty Input -->
<ComboBox Name="GoalDifficultyComboBox" SelectedValue="{Binding Difficulty}"
FontSize="14" Grid.Row="6" Margin="0,5,0,10"/>
<!-- Buttons (Stay at Bottom) -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="7" Margin="0,20,0,0">
<Button Content="OK" Width="120" Height="40" Margin="0,0,10,0" Click="SaveButton_Click"/>
<Button Content="Delete Goal" Width="120" Height="40" Click="DeleteButton_Click"/>
</StackPanel>
</Grid>
</Window>