-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
123 lines (121 loc) · 7.04 KB
/
MainWindow.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<Window x:Class="User_Administration_Dashboard.MainWindow"
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:User_Administration_Dashboard"
mc:Ignorable="d"
Title="User Administrator Dashboard" Height="770" Width="450" ResizeMode="NoResize"
WindowStartupLocation="CenterScreen">
<Border Margin="10">
<StackPanel Height="auto">
<GroupBox Header="User Search" Padding="5">
<Grid Margin="0 0 0 10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBox x:Name="SearchParameter" Grid.Column="0" Margin="0 0 10 0" />
<Button x:Name="SearchButton" Click="SearchButton_Click" Grid.Column="1" IsDefault="True">Search</Button>
</Grid>
</GroupBox>
<GroupBox Header="User Information" Padding="5">
<StackPanel>
<Grid Margin="0 0 0 5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<StackPanel Margin="0 0 10 0" Grid.Column="0">
<TextBlock>First Name</TextBlock>
<TextBox x:Name="FirstName" IsReadOnly="True" Background="#eee" Text="{Binding FirstName, Mode=OneWay}" />
</StackPanel>
<StackPanel Margin="10 0 0 0" Grid.Column="1">
<TextBlock>Last Name</TextBlock>
<TextBox x:Name="LastName" IsReadOnly="True" Background="#eee" Text="{Binding LastName, Mode=OneWay}" />
</StackPanel>
</Grid>
<TextBlock>E-Mail Address</TextBlock>
<TextBox x:Name="EmailAddress" IsReadOnly="True" Background="#eee" Margin="0 0 0 5" Text="{Binding EmailAddress, Mode=OneWay}" />
<Grid Margin="0 0 0 10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<StackPanel Margin="0 0 10 0" Grid.Column="0">
<TextBlock>City</TextBlock>
<TextBox x:Name="City" IsReadOnly="True" Background="#eee" Text="{Binding City, Mode=OneWay}" />
</StackPanel>
<StackPanel Margin="10 0 0 0" Grid.Column="1">
<TextBlock>State</TextBlock>
<TextBox x:Name="State" IsReadOnly="True" Background="#eee" Text="{Binding State, Mode=OneWay}" />
</StackPanel>
</Grid>
</StackPanel>
</GroupBox>
<GroupBox Header="Position Information" Padding="5">
<StackPanel>
<StackPanel Margin="0 0 0 10">
<TextBlock>Title</TextBlock>
<TextBox x:Name="Title" IsReadOnly="True" Background="#eee" Margin="0 0 0 5" Text="{Binding Title, Mode=OneWay}" />
<TextBlock>Department</TextBlock>
<TextBox x:Name="Department" IsReadOnly="True" Background="#eee" Margin="0 0 0 5" Text="{Binding Department, Mode=OneWay}" />
<TextBlock>Manager</TextBlock>
<TextBox x:Name="Manager" IsReadOnly="True" Background="#eee" Margin="0 0 0 5" Text="{Binding Manager, Mode=OneWay}" />
</StackPanel>
</StackPanel>
</GroupBox>
<GroupBox Header="Account Information" Padding="5">
<StackPanel Height="auto">
<Grid Margin="0 0 0 5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0">Account Locked?</TextBlock>
<Button Grid.Column="1" IsEnabled="False">Unlock Account</Button>
</Grid>
<Grid Margin="0 0 0 5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0">Change Password</TextBlock>
<Button Grid.Column="1" IsEnabled="False">Change</Button>
</Grid>
<TextBlock Margin="0 0 0 5">Group Membership</TextBlock>
<DataGrid x:Name="GroupsGrid"
ItemsSource="{Binding Groups}"
AutoGenerateColumns="False"
Margin="0 0 0 5"
MinHeight="200"
MaxHeight="200"
VerticalScrollBarVisibility="Auto" GridLinesVisibility="None" HorizontalGridLinesBrush="#FF444141" AlternatingRowBackground="#FFA8CCED" AlternationCount="2">
<DataGrid.RowStyle>
<Style TargetType="DataGridRow">
<Setter Property="Background" Value="White" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="Blue"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.RowStyle>
<DataGrid.Columns>
<DataGridTextColumn Header="Name" Width="200" Binding="{Binding}" />
</DataGrid.Columns>
</DataGrid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Button IsEnabled="False" Grid.Column="0" Margin="0 0 5 0">Add Group</Button>
<Button IsEnabled="False" Grid.Column="1" Margin="5 0 0 0">Remove Group</Button>
</Grid>
</StackPanel>
</GroupBox>
</StackPanel>
</Border>
</Window>