eksam/Päevaküsimus/MainWindow.xaml

73 lines
3.5 KiB
Plaintext
Raw Normal View History

2017-01-26 15:38:43 +02:00
<Window x:Class="Päevaküsimus.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"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
2017-01-26 17:50:33 +02:00
<TabControl x:Name="viewTabControl" Margin="0,0,0,0">
<TabItem Header="Päevaküsimus">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto"/>
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" MinWidth="110" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Grid.Row="0" Content="Päevaküsimus on:"/>
<Label Grid.Column="1" Grid.Row="0" Content="Placeholder"/>
<Label Grid.Column="0" Grid.Row="1" Content="Vali õige vastuse variant"/>
<ListBox Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
<ListBox.ItemTemplate>
<DataTemplate>
<Label Content="Bla" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>
</TabItem>
<TabItem Header="Admin">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.Column="0" Content="Küsimused"></Label>
<Label Grid.Row="0" Grid.Column="1" Content="Vaata/Muuda"></Label>
<ListBox x:Name="allQuestionsListBox" Grid.Column="0" Grid.Row="1" ItemsSource="{Binding questions}" SelectionChanged="AllQuestionsListBox_OnSelectionChanged">
<ListBox.ItemTemplate>
<DataTemplate>
<Label Content="{Binding question}" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Grid Grid.Row="1" Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.Column="0" Content="Küsimus:"></Label>
<TextBox Grid.Row="0" Grid.Column="1" Text="Uus Küsimus?"></TextBox>
<DataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" x:Name="dataGrid" ItemsSource="{Binding selectedQuestion.answers}">
</DataGrid>
</Grid>
</Grid>
</TabItem>
</TabControl>
2017-01-26 15:38:43 +02:00
</Window>