source: trunk/CrypPlugins/Alphabets/AlphabetPresentation.xaml @ 1778

Last change on this file since 1778 was 4, checked in by Thomas Schmid, 13 years ago

Init checkin

File size: 2.7 KB
Line 
1<UserControl x:Class="Cryptool.Alphabets.AlphabetPresentation"
2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4    Height="Auto" Width="Auto">
5  <Grid Width="Auto" Height="Auto">
6    <Grid.RowDefinitions>
7      <RowDefinition Height="43"/>
8      <RowDefinition Height="*"/>
9      <RowDefinition Height="Auto"/>
10    </Grid.RowDefinitions>
11    <GroupBox Grid.Column="0" Name="groupBoxDefaultAlphabet" Header="Current Selected Alphabet">
12      <TextBox TextAlignment="Left" IsReadOnly="True" Name="textBoxCurrentAlphabet"></TextBox>
13    </GroupBox>
14
15    <GroupBox Name="groupBoxAvailableAlphabets" Header="Available Alphabets" Grid.Row="1">
16      <Grid>
17        <Grid.RowDefinitions>
18          <RowDefinition Height="*"/>
19        </Grid.RowDefinitions>
20        <ListView Grid.Row="0" Name="listViewAlphabets" ItemsSource="{Binding}" SelectionChanged="listViewAlphabets_SelectionChanged">
21          <ListView.View>
22            <GridView>
23              <GridViewColumn Width="60" Header="Default" DisplayMemberBinding="{Binding Default}"/>
24              <GridViewColumn Width="150" Header="Name" DisplayMemberBinding="{Binding Name}"/>
25              <GridViewColumn Width="350" Header="Alphabet" DisplayMemberBinding="{Binding Alphabet}"/>
26            </GridView>
27          </ListView.View>
28        </ListView>
29      </Grid>
30    </GroupBox>
31
32    <GroupBox Grid.Row="2" Name="groupBoxManagerAlphabet" Header="Manage Alphabet">
33      <Grid>
34        <Grid.RowDefinitions>
35          <RowDefinition Height="Auto"/>
36        </Grid.RowDefinitions>
37        <Grid.ColumnDefinitions>
38          <ColumnDefinition Width="150"/>
39          <ColumnDefinition Width="*"/>
40        </Grid.ColumnDefinitions>
41        <StackPanel Grid.Column="0" Margin="5,0,5,0">
42          <Label HorizontalAlignment="Left">Name</Label>
43          <TextBox TextChanged="textBoxAlphabet_TextChanged" Name="textBoxAlphabetName"/>
44        </StackPanel>
45        <StackPanel Grid.Column="1" Margin="5,0,5,0">
46          <Label HorizontalAlignment="Left">Alphabet</Label>
47          <Grid>
48            <Grid.ColumnDefinitions>
49              <ColumnDefinition Width="*" />
50              <ColumnDefinition Width="50" />
51            </Grid.ColumnDefinitions>
52            <TextBox Grid.Column="0"  Name="textBoxAlphabet" TextChanged="textBoxAlphabet_TextChanged" MinWidth="150" HorizontalAlignment="Stretch" />
53            <Button Grid.Column="1" VerticalAlignment="Bottom" Margin="5,0,0,0" HorizontalAlignment="Stretch" Name="buttonAddAlphabet" Content="Add" Click="buttonAddAlphabet_Click"></Button>
54          </Grid>
55        </StackPanel>
56      </Grid>
57    </GroupBox>
58  </Grid>
59</UserControl>
Note: See TracBrowser for help on using the repository browser.