-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathEntityBrickViewer.xaml
83 lines (83 loc) · 4.76 KB
/
EntityBrickViewer.xaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<mah:MetroWindow x:Class="rpkg.EntityBrickViewer"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
xmlns:local="clr-namespace:rpkg"
mc:Ignorable="d"
Loaded="Window_Loaded" Activated="MetroWindow_Activated" Name="ViewerWindow"
Title="Entity/Brick (TEMP) Viewer" Height="800" Width="1280" WindowStartupLocation="CenterScreen" FontFamily="Consolas">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" MinWidth="10"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*" MinWidth="10"/>
</Grid.ColumnDefinitions>
<DockPanel Grid.Row="0" Grid.ColumnSpan="3">
<Menu DockPanel.Dock="Top">
<MenuItem Click="Exit_Click" Header="Exit"/>
</Menu>
</DockPanel>
<TabControl x:Name="LeftTabControl" Grid.Row="1" Grid.Column="0">
<TabItem x:Name="FirstTabLeft" Header="Resource View">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Row="0" Grid.ColumnSpan="2">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.Column="0" Content="Filter By:"/>
<TextBox Grid.Row="0" Grid.Column="1" x:Name="FilterTextBox" TextChanged="SearchTEMPsTextBox_TextChanged" FontFamily="Consolas" TextWrapping="NoWrap"/>
<ComboBox Grid.Row="0" Grid.Column="2" >
<ComboBoxItem>
<Button x:Name="ExpandAllNodes" Click="ExpandAllNodes_Click" Content="Fully Expand Tree"/>
</ComboBoxItem>
<ComboBoxItem>
<Button x:Name="CollapseAllNodes" Click="CollapseAllNodes_Click" Content="Collapse Tree"/>
</ComboBoxItem>
<ComboBoxItem>
<Button x:Name="PreviousNode" Click="PreviousNode_Click" Content="Previous Node"/>
</ComboBoxItem>
</ComboBox>
</Grid>
<WindowsFormsHost Grid.Row="2" Grid.ColumnSpan="2" x:Name="MainWindowsFormsHost">
<wf:TreeView x:Name="MainTreeView" Font="Consolas,10" AfterSelect="MainTreeView_OnAfterSelect"/>
</WindowsFormsHost>
<!--TreeView x:Name="MainTreeView" VirtualizingStackPanel.IsVirtualizing="True" VirtualizingStackPanel.VirtualizationMode="Recycling" BorderThickness="1"/-->
<Grid Grid.Row="3" Grid.ColumnSpan="2" >
<TextBox Name="NodePathTextBox" Text="" TextChanged="NodePathTextBox_OnTextChanged" IsReadOnly="True"/>
</Grid>
</Grid>
</TabItem>
</TabControl>
<GridSplitter HorizontalAlignment="Right" VerticalAlignment="Stretch" Grid.Row="1" Grid.Column="1" ResizeBehavior="PreviousAndNext" Width="5"/>
<TabControl x:Name="RightTabControl" Grid.Row="1" Grid.Column="2" >
<TabItem x:Name="FirstTabRight" Header="Properties">
<ScrollViewer x:Name="MainScrollViewerTEMP" VerticalScrollBarVisibility="Auto">
<StackPanel x:Name="MainStackPanelTEMP"/>
</ScrollViewer>
</TabItem>
</TabControl>
</Grid>
</mah:MetroWindow>