-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
83 lines (76 loc) · 4.53 KB
/
MainWindow.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
<Window x:Class="WeenieViewer.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"
xmlns:local="clr-namespace:WeenieViewer"
mc:Ignorable="d"
Title="Weenie Viewer" Height="450" Width="855">
<Grid x:Name="LayoutRoot">
<Grid.RowDefinitions>
<RowDefinition Height="20" />
<RowDefinition Height="25" />
<RowDefinition Height=".1*" />
<RowDefinition Height="20" />
<!-- STATUSBAR-->
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width=".1*"/>
</Grid.ColumnDefinitions>
<Menu Grid.Row="0" x:Name="MainMenu">
<MenuItem Header="File">
<MenuItem x:Name="miExit" Header="Exit" Click="miExit_Click"/>
</MenuItem>
<MenuItem Header="Search">
<MenuItem x:Name="miSearchWeenies" Header="Weenies" Click="miSearchWeenies_Click"/>
<MenuItem x:Name="miSearchSpells" Header="Spells..." Click="miSearchSpells_Click" InputGestureText="Ctrl+S" />
</MenuItem>
<MenuItem Header="Tools">
<MenuItem x:Name="miRegenerateTxtFiles" Header="Regenerate EmoteScript Files" Click="miRegenerateTxtFiles_Click" />
<MenuItem x:Name="miOptions" Header="Options..." Click="miOptions_Click" />
</MenuItem>
<MenuItem Header="Help">
<MenuItem x:Name="miAbout" Header="About..." Click="miAbout_Click" />
</MenuItem>
</Menu>
<Canvas Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" Height="30">
<Label Content="Search:" Canvas.Left="10" Canvas.Top="2" VerticalContentAlignment="Center" RenderTransformOrigin="1.567,0.367" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<TextBox x:Name="txtSearch" Text="" Canvas.Left="63" Canvas.Top="6" HorizontalAlignment="Left" Height="18" VerticalAlignment="Top" Width="137"/>
<Button x:Name="btnCloseTab" Content="X" Canvas.Right="10" Canvas.Top="7" FontFamily="Arial Black" ToolTip="Close Tab" BorderBrush="Transparent" Click="btnCloseTab_Click" />
<Button x:Name="btnWiki" Canvas.Right="40" Width="100" Height="26" Canvas.Top="2" HorizontalAlignment="Center" VerticalAlignment="Top" Background="Transparent" BorderBrush="Transparent" Click="btnWiki_Click" Visibility="Hidden">
<StackPanel Orientation="Horizontal">
<Image Source="Graphics/wiki_icon.png" Width="16" Height="16"/>
<TextBlock Text="Search Wikia" Margin="2,0,0,0" />
</StackPanel>
</Button>
<Button x:Name="btnAcpedia" Canvas.Right="40" Width="110" Height="26" Canvas.Top="2" HorizontalAlignment="Center" VerticalAlignment="Top" Background="Transparent" BorderBrush="Transparent" Click="btnAcpedia_Click">
<StackPanel Orientation="Horizontal">
<Image Source="Graphics/acpedia.png" Width="16" Height="16"/>
<TextBlock Text="Search ACPedia" Margin="2,0,0,0" />
</StackPanel>
</Button>
<Canvas.Background>
<SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ControlLightColorKey}}"/>
</Canvas.Background>
</Canvas>
<TabControl Grid.Row="2" x:Name="tabGroup" SelectionChanged="tabGroup_SelectionChanged">
<TabItem Header="Search Results" x:Name="tabSearch">
<ListBox x:Name="lstSearchResults" MouseDoubleClick="lstSearchResults_MouseDoubleClick">
<ListBox.ContextMenu>
<ContextMenu>
<MenuItem Header="View Weenie..." Click="View_OnClick" />
</ContextMenu>
</ListBox.ContextMenu>
</ListBox>
</TabItem>
</TabControl>
<StatusBar Grid.Row="3">
<StatusBarItem HorizontalAlignment="Left">
<TextBlock Name="lblResultsCount" Text="RESULTS" HorizontalAlignment="Left" />
</StatusBarItem>
<StatusBarItem HorizontalAlignment="Right">
<TextBlock Name="lblVersion" Text="VERSION INFOMATION" HorizontalAlignment="Right" />
</StatusBarItem>
</StatusBar>
</Grid>
</Window>