138 lines
5.7 KiB
Plaintext
138 lines
5.7 KiB
Plaintext
|
<Window x:Class="Help.MainWindow"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
Title="Help" Height="550" Width="900" WindowStartupLocation="Manual"
|
||
|
Icon="/Help;component/help-logo.ico">
|
||
|
<Window.Resources>
|
||
|
<ResourceDictionary>
|
||
|
<ResourceDictionary.MergedDictionaries>
|
||
|
<ResourceDictionary Source="Styles/SearchTextbox.xaml" />
|
||
|
</ResourceDictionary.MergedDictionaries>
|
||
|
</ResourceDictionary>
|
||
|
</Window.Resources>
|
||
|
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition />
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="200px" Name="asdf"/>
|
||
|
<ColumnDefinition Width="5"/>
|
||
|
<ColumnDefinition />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
|
||
|
<ToolBarTray Grid.ColumnSpan="100">
|
||
|
|
||
|
<ToolBar Name="toolbarNavigation" >
|
||
|
<TextBlock VerticalAlignment="Center" Margin="2,0,5,0"
|
||
|
Foreground="Gray">Navigation:</TextBlock>
|
||
|
<Button Name="bBrowseBack" ToolTip="Back"
|
||
|
Click="bBrowseBack_Click"
|
||
|
IsEnabled="False"
|
||
|
IsEnabledChanged="Button_IsEnabledChanged">
|
||
|
<Image Width="16" Height="16" Source="/Help;component/Images/help-back.png" />
|
||
|
</Button>
|
||
|
<Button Name="bBrowseForward" ToolTip="Forward"
|
||
|
Click="bBrowseForward_Click"
|
||
|
IsEnabled="False"
|
||
|
IsEnabledChanged="Button_IsEnabledChanged">
|
||
|
<Image Width="16" Height="16" Source="/Help;component/Images/help-forward.png" />
|
||
|
</Button>
|
||
|
|
||
|
<Separator />
|
||
|
|
||
|
<Button Name="bBrowseHome" ToolTip="Home"
|
||
|
Click="bBrowseHome_Click">
|
||
|
<Image Width="16" Height="16" Source="/Help;component/Images/help-home.png" />
|
||
|
</Button>
|
||
|
|
||
|
</ToolBar>
|
||
|
|
||
|
<ToolBar Name="toolbarApplication">
|
||
|
|
||
|
<TextBlock VerticalAlignment="Center" Margin="2,0,5,0"
|
||
|
Foreground="Gray">Application:</TextBlock>
|
||
|
|
||
|
<ComboBox Name="listChapters" Width="130"
|
||
|
SelectionChanged="listChapters_SelectionChanged" >
|
||
|
<ComboBox.ItemTemplate>
|
||
|
<DataTemplate>
|
||
|
<TextBlock Text="{Binding Title}" />
|
||
|
</DataTemplate>
|
||
|
</ComboBox.ItemTemplate>
|
||
|
</ComboBox>
|
||
|
|
||
|
|
||
|
</ToolBar>
|
||
|
|
||
|
<ToolBar Name="toolbarSearch" >
|
||
|
<TextBox Name="textSearch" Style="{StaticResource SearchBoxStyle}"
|
||
|
Width="150" KeyDown="textSearch_KeyDown"
|
||
|
/>
|
||
|
|
||
|
<Button Name="bSearch"
|
||
|
ToolTip="Search"
|
||
|
IsEnabledChanged="Button_IsEnabledChanged"
|
||
|
Click="bSearch_Click">
|
||
|
<Image Width="16" Height="16" Source="/Help;component/Images/help-search.png" />
|
||
|
</Button>
|
||
|
|
||
|
<Button Name="bClear" Visibility="Collapsed"
|
||
|
ToolTip="Clear search"
|
||
|
IsEnabledChanged="Button_IsEnabledChanged"
|
||
|
Click="bClear_Click">
|
||
|
<Image Width="16" Height="16" Source="/Help;component/Images/help-clear.png" />
|
||
|
</Button>
|
||
|
|
||
|
<Button Name="bSearchOptions" ToolTip="Search options"
|
||
|
Click="bSearchOptions_Click"
|
||
|
IsEnabledChanged="Button_IsEnabledChanged">
|
||
|
<Image Width="16" Height="16" Source="/Help;component/Images/help-searchopt.png" />
|
||
|
<Button.ContextMenu>
|
||
|
<ContextMenu>
|
||
|
<RadioButton Name="searchTitleOnly" IsChecked="True">Search title</RadioButton>
|
||
|
<RadioButton Name="searchContent">Search content</RadioButton>
|
||
|
<RadioButton Name="searchPage" >Search in current page</RadioButton>
|
||
|
</ContextMenu>
|
||
|
</Button.ContextMenu>
|
||
|
</Button>
|
||
|
</ToolBar>
|
||
|
|
||
|
|
||
|
</ToolBarTray>
|
||
|
|
||
|
<ListView
|
||
|
Name="listTopics"
|
||
|
Grid.Row="2" Grid.Column="0"
|
||
|
SelectionChanged="listTopics_SelectionChanged">
|
||
|
<ListView.ItemTemplate>
|
||
|
<DataTemplate>
|
||
|
<StackPanel Orientation="Vertical">
|
||
|
<TextBlock Text="{Binding Title}" />
|
||
|
<TextBlock Name="context" Foreground="DarkGray"
|
||
|
FontSize="10"
|
||
|
Margin="0,0,0,5" Text="{Binding Context}"
|
||
|
Visibility="Collapsed"/>
|
||
|
</StackPanel>
|
||
|
|
||
|
<DataTemplate.Triggers>
|
||
|
<DataTrigger Binding="{Binding IsSearchResult}" Value="True">
|
||
|
<Setter TargetName="context" Property="Visibility" Value="Visible" />
|
||
|
</DataTrigger>
|
||
|
</DataTemplate.Triggers>
|
||
|
</DataTemplate>
|
||
|
</ListView.ItemTemplate>
|
||
|
</ListView>
|
||
|
|
||
|
<GridSplitter Grid.Row="1" Grid.RowSpan="2" Grid.Column="1"
|
||
|
HorizontalAlignment="Stretch"
|
||
|
VerticalAlignment="Stretch"></GridSplitter>
|
||
|
<WebBrowser Name="webBrowser" Grid.Row="2" Grid.Column="2"
|
||
|
Navigated="webBrowser_Navigated" />
|
||
|
|
||
|
</Grid>
|
||
|
|
||
|
</Window>
|