-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLongTermGoalManagerWindow.xaml
More file actions
45 lines (40 loc) · 2.98 KB
/
LongTermGoalManagerWindow.xaml
File metadata and controls
45 lines (40 loc) · 2.98 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
<Window x:Class="TimeTask.LongTermGoalManagerWindow"
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="Manage Long-Term Goal Tasks" Height="600" Width="800"
WindowStartupLocation="CenterOwner">
<Window.Resources>
<local:InverseBooleanConverter x:Key="InverseBooleanConverter"/>
</Window.Resources>
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/> <!-- Goal Description -->
<RowDefinition Height="Auto"/> <!-- Separator -->
<RowDefinition Height="*"/> <!-- DataGrid for Tasks -->
<RowDefinition Height="Auto"/> <!-- Action Buttons -->
<RowDefinition Height="Auto"/> <!-- Close Button -->
</Grid.RowDefinitions>
<TextBlock x:Name="GoalDescriptionTextBlock" Grid.Row="0" Margin="5" FontSize="16" FontWeight="Bold" TextWrapping="Wrap" Text="Long Term Goal Description Will Appear Here"/>
<Separator Grid.Row="1" Margin="0,5,0,5"/>
<DataGrid x:Name="SubTasksDataGrid" Grid.Row="2" Margin="5" AutoGenerateColumns="False" SelectionMode="Extended" CanUserAddRows="False">
<DataGrid.Columns>
<DataGridTextColumn Header="Day" Binding="{Binding OriginalScheduledDay}" Width="Auto" IsReadOnly="True"/>
<DataGridTextColumn Header="Task Description" Binding="{Binding Task}" Width="*" IsReadOnly="True"/>
<DataGridCheckBoxColumn Header="Active in Quadrant" Binding="{Binding IsActiveInQuadrant, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Width="Auto"/>
<DataGridCheckBoxColumn Header="Completed" Binding="{Binding IsCompleted, Converter={StaticResource InverseBooleanConverter}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Width="Auto"/>
<!-- Assuming IsActive means not completed. If IsCompleted is a direct property, use that. -->
<!-- Using an InverseBooleanConverter for 'IsCompleted' if it's based on 'IsActive' -->
</DataGrid.Columns>
</DataGrid>
<StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right" Margin="5">
<Button x:Name="ActivateButton" Content="Activate in Quadrants" Margin="0,0,10,0" Padding="10,5" Click="ActivateButton_Click"/>
<Button x:Name="ToggleButton" Content="Toggle Completion" Margin="0,0,10,0" Padding="10,5" Click="ToggleButton_Click"/>
<Button x:Name="DeleteButton" Content="Delete Selected" Padding="10,5" Click="DeleteButton_Click"/>
</StackPanel>
<Button x:Name="CloseButton" Grid.Row="4" Content="Close" Width="100" HorizontalAlignment="Right" Margin="5" Padding="10,5" Click="CloseButton_Click"/>
</Grid>
</Window>