Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/WpfTestSvgSample/Backup/MainWindow.xaml @ 14113

Last change on this file since 14113 was 12762, checked in by aballeit, 9 years ago

#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)

File size: 5.2 KB
Line 
1<Window x:Class="WpfTestSvgSample.MainWindow"
2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4    xmlns:svg="clr-namespace:WpfTestSvgSample;assembly="
5    Title="WPF Test Application"  Height="589" Width="719" WindowStartupLocation="CenterScreen"
6         DragEnter="OnDragEnter" DragLeave="OnDragLeave" Drop="OnDragDrop" AllowDrop="True">
7    <DockPanel LastChildFill="True" Margin="3">
8        <!-- Top Panel: Directory Source -->
9        <Border DockPanel.Dock="Top" BorderBrush="Gray" BorderThickness="1" CornerRadius="8" Margin="0, 3, 0, 3">
10            <DockPanel Margin="3" HorizontalAlignment="Stretch" LastChildFill="True">
11                <TextBlock Name="lblSvgPath" DockPanel.Dock="Left" VerticalAlignment="Center" Margin="3" FontWeight="Bold">SVG Source Directory:</TextBlock>
12                <Button Name="btnSvgPath" DockPanel.Dock="Right" HorizontalAlignment="Right" Margin="3" Content="Browse..." Click="OnBrowseForSvgPath"/>
13                <TextBox Name="txtSvgPath" HorizontalAlignment="Stretch" Margin="3" TextChanged="OnSvgPathTextChanged" />
14            </DockPanel>
15        </Border>
16        <!-- Bottom Panel: Selected File -->
17        <Border BorderBrush="Gray" BorderThickness="1" CornerRadius="8" DockPanel.Dock="Bottom" Margin="0, 3, 0, 3">
18            <DockPanel Margin="3" HorizontalAlignment="Stretch" LastChildFill="True">
19                <TextBlock Name="txtSvgFileLabel" DockPanel.Dock="Left" VerticalAlignment="Center" Margin="3" FontWeight="Bold">Selected SVG File:</TextBlock>
20                <Button Name="btnSvgFile" DockPanel.Dock="Right" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="3" Content="Select..." Click="OnBrowseForSvgFile"/>
21                <TextBox Name="txtSvgFile" HorizontalAlignment="Stretch" Margin="3" TextAlignment="Left" TextWrapping="NoWrap" IsReadOnly="True"/>               
22            </DockPanel>
23        </Border>
24        <!-- Main Content -->
25        <Border BorderBrush="Gray" BorderThickness="1" CornerRadius="8">
26            <Grid Name="mainGrid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
27                <Grid.ColumnDefinitions>
28                    <ColumnDefinition Width="Auto" MinWidth="24"/>
29                    <ColumnDefinition Width="8"/>
30                    <ColumnDefinition Width="*"/>
31                </Grid.ColumnDefinitions>
32                <Expander Name="leftExpander" Grid.Row="0" Grid.Column="0" IsExpanded="True" ExpandDirection="Left">
33                    <Expander.Header>
34                        <TextBlock Text="Directory Contents" FontSize="14">               
35                        <TextBlock.LayoutTransform>
36                            <RotateTransform Angle="90" />
37                        </TextBlock.LayoutTransform>
38                        </TextBlock>
39                    </Expander.Header>
40                    <TreeView Name="treeView" Margin="3" HorizontalAlignment="Stretch" IsTextSearchEnabled="True" TreeViewItem.Collapsed="OnTreeViewItemCollapsed" TreeViewItem.Expanded="OnTreeViewItemExpanded" TreeViewItem.Selected="OnTreeViewItemSelected" TreeViewItem.Unselected="OnTreeViewItemUnselected" />
41                </Expander>
42                <GridSplitter Name="leftSplitter" Grid.Row="0" Grid.Column="1" BorderThickness="1" BorderBrush="Gray" Background="LightGray"
43                          HorizontalAlignment="Center" Width="6" VerticalAlignment="Stretch"/>
44                <TabControl Name="contentsTab"  Margin="6" Grid.Row="0" Grid.Column="2">
45                    <TabItem Name="tabDrawing" Header="Drawing" GotFocus="OnTabItemGotFocus">
46                        <Frame Name="frameDrawing" Source="DrawingPage.xaml"/>
47                    </TabItem>
48                    <TabItem Name="tabXamlOutput" GotFocus="OnTabItemGotFocus">
49                        <TabItem.Header>
50                            <StackPanel Orientation="Horizontal">
51                                <CheckBox Name="fillXamlOutput" Margin="3, 3, 6, 3" Checked="OnFillXamlOutputChecked"/>
52                                <TextBlock Text="Xaml Output File"/>
53                            </StackPanel>
54                        </TabItem.Header>
55                        <TabItem.Content>                           
56                            <Frame Name="frameXamlOutput" Source="XamlPage.xaml"/>
57                        </TabItem.Content>
58                    </TabItem>
59                    <TabItem Name="tabSvgInput" GotFocus="OnTabItemGotFocus">
60                        <TabItem.Header>
61                            <StackPanel Orientation="Horizontal">
62                                <CheckBox Name="fillSvgInput" Margin="3, 3, 6, 3" Checked="OnFillSvgInputChecked"/>
63                                <TextBlock Text="Svg Input File"/>
64                            </StackPanel>
65                        </TabItem.Header>
66                        <TabItem.Content>
67                            <Frame Name="frameSvgInput" Source="SvgPage.xaml"/>
68                        </TabItem.Content>
69                    </TabItem>
70                </TabControl>
71            </Grid>
72        </Border>
73    </DockPanel>
74</Window>
Note: See TracBrowser for help on using the repository browser.