-
Notifications
You must be signed in to change notification settings - Fork 0
/
Paycheck.xaml
93 lines (91 loc) · 4.48 KB
/
Paycheck.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
85
86
87
88
89
90
91
92
93
<Window x:Class="Goalie.Paycheck"
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:Goalie"
mc:Ignorable="d"
ShowInTaskbar="False"
ResizeMode="NoResize"
WindowStartupLocation="CenterOwner"
Title="Paycheck" Height="450" Width="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="*"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<StackPanel Background="{StaticResource GoalieGreen}">
<TextBlock VerticalAlignment="Center"
FontSize="24"
Margin="10"
Foreground="{StaticResource GoalieGreenContrast}"
x:Name="GoalLabel">Enter Income Information</TextBlock>
</StackPanel>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock>Net pay (after tax):</TextBlock>
<TextBox x:Name="NetPay" Width="250" TextChanged="NetPay_TextChanged"/>
<TextBlock Foreground="{StaticResource SoftControlForeground}" x:Name="Minimum">Minimum: ...</TextBlock>
<TextBlock Margin="0 40 0 0">Description:</TextBlock>
<TextBox x:Name="Description" AcceptsReturn="True" Height="100" Text="Paycheck"/>
</StackPanel>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="*"/>
<RowDefinition Height="60"/>
</Grid.RowDefinitions>
<TextBlock Margin="10"
Foreground="{StaticResource SoftControlForeground}"
FontSize="20">Apply to goals:</TextBlock>
<ListView BorderThickness="0" x:Name="SelectGoalCheckboxes" Grid.Row="1">
<ListView.ItemTemplate>
<DataTemplate>
<DockPanel LastChildFill="True">
<CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}"
VerticalAlignment="Center"
DockPanel.Dock="Left"
Checked="SomethingChecked"
Unchecked="SomethingChecked"/>
<TextBlock Margin="5" Text="{Binding}"
DockPanel.Dock="Left"/>
</DockPanel>
</DataTemplate>
</ListView.ItemTemplate>
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="Focusable" Value="false"/>
</Style>
</ListView.ItemContainerStyle>
</ListView>
<TextBlock Grid.Row="2"
VerticalAlignment="Bottom"
HorizontalAlignment="Right"
Margin="10"
x:Name="SummaryLabel"
TextWrapping="Wrap">Loading Summary...</TextBlock>
</Grid>
</Grid>
<DockPanel Background="{StaticResource VeryLightGray}" Grid.Row="2">
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
<Button VerticalAlignment="Center"
Width="100"
Height="30"
Margin="0 0 10 0"
x:Name="Cancel" Click="Cancel_Click">Cancel</Button>
<Button Style="{StaticResource ActionButton}"
VerticalAlignment="Center"
Width="100"
Height="30"
Margin="0 0 10 0"
Cursor="Hand"
x:Name="Done" Click="Done_Click">Done</Button>
</StackPanel>
</DockPanel>
</Grid>
</Window>