This repository was archived by the owner on Dec 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResearcherListView.xaml
More file actions
54 lines (53 loc) · 3.24 KB
/
ResearcherListView.xaml
File metadata and controls
54 lines (53 loc) · 3.24 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
<Window x:Class="RAP_Assignment.ResearcherListView"
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:RAP_Assignment"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<TextBox Text="Research Assessment Program" FontSize="20" FontWeight="Bold" HorizontalAlignment="Center" Margin="0,10,0,380" Width="475" IsReadOnly="True"/>
<StackPanel Orientation="Vertical" Margin="0,59,0,0">
<StackPanel Orientation="Vertical">
<TextBox Text="LevelFilter:" FontWeight="Bold" IsReadOnly="true"/>
<ComboBox x:Name="FilterLevelComboBox" SelectionChanged="FilterLevelComboBox_SelectionChanged">
<ComboBoxItem Content="A"/>
<ComboBoxItem Content="B"/>
<ComboBoxItem Content="C"/>
<ComboBoxItem Content="D"/>
<ComboBoxItem Content="E"/>
<ComboBoxItem Content="Student"/>
<ComboBoxItem Content="All"/>
</ComboBox>
</StackPanel>
<StackPanel Orientation="Horizontal" RenderTransformOrigin="0.497,3.977" Height="43" Width="475">
<TextBox Text="Generate Report" FontWeight="Bold" VerticalAlignment="Center" Margin="5"/>
<Button x:Name="PoorButton" Content="Poor" Margin="5" Click="PoorButton_Click"/>
<Button x:Name="BEButton" Content="Below Expectations" Margin="5" Click="BEButton_Click"/>
<Button x:Name="MMButton" Content="Meeting Minimum" Margin="5" Click="MMButton_Click"/>
<Button x:Name="SPButton" Content="Star Performers" Margin="5" Click="SPButton_Click"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Height="42">
<TextBox Text="Search by name:" FontWeight="Bold" VerticalAlignment="Center" Margin="5"/>
<TextBox x:Name="NameSearchTextBox" Margin="5" VerticalAlignment="Center" Width="200" Text="Type name here"/>
<StackPanel Orientation="Vertical" Margin="5">
<Button x:Name="SearchButton" Content="SearchButton" Click="SearchButton_Click" Margin="5"/>
</StackPanel>
</StackPanel>
</StackPanel>
<ListView x:Name="ResearcherListBox" ItemsSource="{Binding Researchers}" SelectedItem="{Binding selectedResearcher}" Margin="20" Grid.Column="1" SelectionChanged="ResearcherListBox_SelectChanged">
<ListView.View>
<GridView>
<GridViewColumn DisplayMemberBinding="{Binding Path=familyName}"/>
<GridViewColumn DisplayMemberBinding="{Binding Path=givenName}"/>
<GridViewColumn DisplayMemberBinding="{Binding Path=title}"/>
</GridView>
</ListView.View>
</ListView>
</Grid>
</Window>