101 lines
3.7 KiB
XML
101 lines
3.7 KiB
XML
<UserControl
|
||
x:Class="FATrace.WPLApp.Views.HelpManualView"
|
||
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:local="clr-namespace:FATrace.WPLApp.Views"
|
||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
xmlns:pdfViewer="clr-namespace:Syncfusion.Windows.PdfViewer;assembly=Syncfusion.PdfViewer.WPF"
|
||
xmlns:prism="http://prismlibrary.com/"
|
||
d:DesignHeight="450"
|
||
d:DesignWidth="800"
|
||
prism:ViewModelLocator.AutoWireViewModel="True"
|
||
mc:Ignorable="d">
|
||
<UserControl.Resources>
|
||
<BooleanToVisibilityConverter x:Key="Bool2Vis" />
|
||
</UserControl.Resources>
|
||
<Grid Margin="10">
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="Auto" />
|
||
<RowDefinition Height="Auto" />
|
||
<RowDefinition Height="*" />
|
||
<RowDefinition Height="Auto" />
|
||
</Grid.RowDefinitions>
|
||
|
||
<TextBlock
|
||
Grid.Row="0"
|
||
Margin="0,0,0,8"
|
||
FontSize="20"
|
||
FontWeight="SemiBold"
|
||
Text="使用手册" />
|
||
|
||
<Border
|
||
Grid.Row="1"
|
||
Padding="10"
|
||
Background="#F9F9F9"
|
||
BorderBrush="#DDDDDD"
|
||
BorderThickness="1"
|
||
CornerRadius="4">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="Auto" />
|
||
<ColumnDefinition Width="*" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<TextBlock
|
||
Grid.Column="0"
|
||
VerticalAlignment="Center"
|
||
Text="PDF:" />
|
||
|
||
<ComboBox
|
||
Grid.Column="1"
|
||
Height="30"
|
||
Margin="6,0,10,0"
|
||
ItemsSource="{Binding PdfFiles}"
|
||
SelectedItem="{Binding SelectedPdf, Mode=TwoWay}" />
|
||
|
||
<Button
|
||
Grid.Column="2"
|
||
Width="90"
|
||
Height="30"
|
||
Command="{Binding RefreshCommand}">
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock
|
||
Margin="0,0,6,0"
|
||
FontFamily="/Assets/Fonts/#iconfont"
|
||
FontSize="16"
|
||
Text="" />
|
||
<TextBlock Text="刷新" />
|
||
</StackPanel>
|
||
</Button>
|
||
</Grid>
|
||
</Border>
|
||
|
||
<Grid Grid.Row="2" Margin="0,10,0,10">
|
||
<pdfViewer:PdfViewerControl ItemSource="{Binding PdfFilePath}" />
|
||
<Border Background="#CCFFFFFF" Visibility="{Binding IsBusy, Converter={StaticResource Bool2Vis}}">
|
||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
FontSize="16"
|
||
FontWeight="SemiBold"
|
||
Text="正在加载..." />
|
||
</StackPanel>
|
||
</Border>
|
||
</Grid>
|
||
|
||
<StatusBar Grid.Row="3">
|
||
<StatusBarItem>
|
||
<TextBlock Text="状态:" />
|
||
</StatusBarItem>
|
||
<StatusBarItem>
|
||
<TextBlock Text="{Binding StatusText}" />
|
||
</StatusBarItem>
|
||
<StatusBarItem HorizontalAlignment="Right">
|
||
<TextBlock Text="正在处理..." Visibility="{Binding IsBusy, Converter={StaticResource Bool2Vis}}" />
|
||
</StatusBarItem>
|
||
</StatusBar>
|
||
</Grid>
|
||
</UserControl>
|