2022-08-20 14:23:25 +02:00
|
|
|
<UserControl x:Class="RMWPFUserInterface.Views.UserDisplayView"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:local="clr-namespace:RMWPFUserInterface.Views"
|
|
|
|
mc:Ignorable="d" Background="White" FontSize="24"
|
|
|
|
d:DesignHeight="550" d:DesignWidth="800">
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="auto"/>
|
|
|
|
<RowDefinition Height="auto" />
|
|
|
|
<RowDefinition Height="auto" />
|
|
|
|
<RowDefinition Height="auto" />
|
|
|
|
<RowDefinition Height="auto" />
|
|
|
|
<RowDefinition Height="auto" />
|
|
|
|
<RowDefinition Height="auto" />
|
|
|
|
<RowDefinition Height="auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="auto"/>
|
|
|
|
<ColumnDefinition Width="auto"/>
|
|
|
|
<ColumnDefinition Width="auto"/>
|
|
|
|
<ColumnDefinition Width="auto"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- Header -->
|
|
|
|
<TextBlock Text="User Administration" FontSize="48"
|
|
|
|
Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3"
|
|
|
|
Margin="0 0 0 30"/>
|
|
|
|
<!-- Column 0 -->
|
|
|
|
<TextBlock Text="Users" Grid.Row="1" Grid.Column="0"/>
|
|
|
|
<ListBox x:Name="Users" Grid.Row="2" Grid.Column="0"
|
2022-08-22 00:12:27 +02:00
|
|
|
MinHeight="200" MinWidth="150" SelectedItem="SelectedUser">
|
2022-08-20 14:23:25 +02:00
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
<TextBlock Text="{Binding EmailAddress}"/>
|
|
|
|
<TextBlock Text="{Binding RoleList}" FontSize="18" />
|
|
|
|
</StackPanel>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
2022-08-22 00:12:27 +02:00
|
|
|
|
|
|
|
<!-- Column 1 -->
|
|
|
|
<StackPanel Orientation="Vertical" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2"
|
|
|
|
Margin="20 0 0 0">
|
|
|
|
<TextBlock x:Name="SelectedUserName" Margin="0 0 0 10"/>
|
|
|
|
<TextBlock Text="Current Roles" />
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 0 0 10">
|
|
|
|
<ListBox x:Name="UserRoles" />
|
|
|
|
<Button x:Name="RemoveSelectedRole" Content="Remove" Margin="5 0 0 0"/>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<ComboBox x:Name="AvailableRoles"/>
|
|
|
|
<Button x:Name="AddSelectedRole" Content="Add Role" Margin="5 0 0 0"/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
</StackPanel>
|
2022-08-20 14:23:25 +02:00
|
|
|
</Grid>
|
|
|
|
</UserControl>
|