123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343 |
- <UserControl
- x:Class="PDF_Office.Views.PropertyPanel.ViewModular.ViewModularContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:AnnotPanel="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel"
- xmlns:Convert="clr-namespace:PDF_Office.DataConvert"
- xmlns:ViewModular="clr-namespace:PDF_Office.ViewModels.PropertyPanel.ViewModular"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel.ViewModular"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- Width="256"
- d:DataContext="{d:DesignInstance Type=ViewModular:ViewModularContentViewModel}"
- d:DesignHeight="952"
- d:DesignWidth="256"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/Styles/CheckBoxStyle.xaml" />
- <ResourceDictionary Source="pack://application:,,,/Styles/RadioButtonStyle.xaml" />
- <ResourceDictionary Source="pack://application:,,,/Styles/TextBoxStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <StackPanel Margin="5,0,5,0">
- <TextBlock
- Name="txtTitle"
- Height="auto"
- Margin="0,8,0,0"
- HorizontalAlignment="Center"
- FontFamily="Segoe UI Semibold"
- FontSize="18"
- FontWeight="SemiBold"
- Text="视图" />
- <TextBlock
- Name="txtDisplayMode"
- Margin="0,8,0,14"
- Style="{StaticResource PagesView_titleContext}"
- Text="显示模式" />
- <StackPanel Orientation="Horizontal">
- <RadioButton
- Name="RBtnSinglePage"
- Command="{Binding SetViewModeCommand}"
- GroupName="DisplayMode"
- IsChecked="{Binding IsSingleView}"
- Style="{StaticResource PageViewRadioBtn}">
- <StackPanel Margin="0,0,3,0">
- <Path
- Margin="0,0,0,8"
- HorizontalAlignment="Center"
- Data="M9.80710597,0 L14,4.39289312 L14,16 L2,16 L2,0 L9.80710597,0 Z M8.999,1 L3,1 L3,15 L13,15 L13,4.999 L8.999999,5 L8.999,1 Z M12.236,3.999 L9.999,1.64 L9.999,4 L12.236,3.999 Z"
- Fill="{StaticResource MenuIco.fill}" />
- <TextBlock
- x:Name="SinglePageText"
- Style="{StaticResource ViewMode_txtContext}"
- Text="单页" />
- </StackPanel>
- </RadioButton>
- <RadioButton
- Name="RBtnTwoPage"
- Margin="2,0,2,0"
- Command="{Binding SetViewModeCommand}"
- GroupName="DisplayMode"
- IsChecked="{Binding IsTwoPageView}"
- Style="{StaticResource PageViewRadioBtn}">
- <StackPanel Margin="0,0,3,0">
- <Path
- Margin="0,0,0,8"
- HorizontalAlignment="Center"
- Data="M0,15 L0,1 L11.807106,1 L16,5.39289312 L16,15 L0,15 Z M7.5,2 L1,2 L1,14 L7.5,14 L7.5,2 Z M10.999,2 L8.5,2 L8.5,14 L15,14 L15,5.999 L10.999999,6 L10.999,2 Z M11.999,2.64 L11.999,5 L14.236,4.999 L11.999,2.64 Z"
- Fill="{StaticResource MenuIco.fill}" />
- <TextBlock
- x:Name="TwoPageText"
- Style="{StaticResource ViewMode_txtContext}"
- Text="双页" />
- </StackPanel>
- </RadioButton>
- <RadioButton
- Name="RBtnBookMode"
- Margin="0,0,2,0"
- Command="{Binding SetViewModeCommand}"
- GroupName="DisplayMode"
- IsChecked="{Binding IsBookModeView}"
- Style="{StaticResource PageViewRadioBtn}">
- <StackPanel Margin="0,0,3,0">
- <Grid
- Width="16"
- Height="16"
- Margin="0,0,0,8">
- <Path
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- Data="M7,0 L7,5 L6,5 L6,1 L1,1 L1,5 L0,5 L0,0 L7,0 Z M16,0 L16,5 L15,5 L15,1 L10,1 L10,5 L9,5 L9,0 L16,0 Z"
- Fill="{StaticResource MenuIco.fill}" />
- <Path
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- Data="M3.80710597,0 L7,3.39289312 L7,9 L0,9 L0,0 L3.80710597,0 Z M2.999,1 L1,1 L1,8 L6,8 L6,3.999 L2.999999,4 L2.999,1 Z M5.251,2.999 L3.999,1.652 L3.999,3 L5.251,2.999 Z"
- Fill="{StaticResource MenuIco.fill}">
- <Path.RenderTransform>
- <TransformGroup>
- <TranslateTransform X="-5" />
- </TransformGroup>
- </Path.RenderTransform>
- </Path>
- </Grid>
- <TextBlock
- x:Name="BookModeText"
- Style="{StaticResource ViewMode_txtContext}"
- Text="书本模式" />
- </StackPanel>
- </RadioButton>
- <RadioButton
- Name="RbtnReadMode"
- HorizontalAlignment="Left"
- Click="RbtnReadMode_Click"
- Style="{StaticResource PageViewRadioBtn}">
- <StackPanel Margin="0,0,3,0">
- <Grid
- Margin="0,0,0,8"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <Path Data="M11,6.5 L11,9 L10,9 L10,8.206 L6.706,11.5 L7.5,11.5 L7.5,12.5 L5,12.5 L5,10 L6,10 L6,10.792 L9.292,7.5 L8.5,7.5 L8.5,6.5 L11,6.5 Z" Fill="{StaticResource MenuIco.fill}" />
- <Path
- HorizontalAlignment="Center"
- Data="M9.80710597,0 L14,4.39289312 L14,16 L2,16 L2,0 L9.80710597,0 Z M8.999,1 L3,1 L3,15 L13,15 L13,4.999 L8.999999,5 L8.999,1 Z M12.236,3.999 L9.999,1.64 L9.999,4 L12.236,3.999 Z"
- Fill="{StaticResource MenuIco.fill}" />
- </Grid>
- <TextBlock
- x:Name="ReadModeText"
- Style="{StaticResource ViewMode_txtContext}"
- Text="阅读模式" />
- </StackPanel>
- </RadioButton>
- </StackPanel>
- <Separator
- Width="248"
- Height="1"
- Margin="0,8,0,8"
- BorderBrush="{StaticResource Separator.fill}"
- BorderThickness="1"
- Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
- <CheckBox
- Name="chkContinue"
- Margin="0,6,0,6"
- VerticalContentAlignment="Center"
- Command="{Binding ContinueCommand}"
- Content="连续滚动"
- FontFamily="Segoe UI"
- FontSize="14"
- IsChecked="{Binding IsContinue}"
- Template="{StaticResource MenuCheckbox}" />
- <CheckBox
- Name="chkPagesBreak"
- Margin="0,6,0,6"
- VerticalContentAlignment="Center"
- Command="{Binding PagesBreakCommand}"
- Content="分页符"
- FontFamily="Segoe UI"
- FontSize="14"
- IsChecked="{Binding IsPagesBreak}"
- Template="{StaticResource MenuCheckbox}" />
- <TextBlock
- Name="txtScrollMode"
- Margin="0,26,0,14"
- Style="{StaticResource PagesView_titleContext}"
- Text="Scoll Mode"
- Visibility="Collapsed" />
- <StackPanel Orientation="Horizontal" Visibility="Collapsed">
- <RadioButton
- Name="RbtnVertical"
- GroupName="ScrollMode"
- IsChecked="True"
- Style="{StaticResource PageViewRadioBtn}">
- <StackPanel Margin="0,0,3,0">
- <Grid Margin="0,0,0,8">
- <Polygon
- HorizontalAlignment="Center"
- Fill="{StaticResource MenuIco.fill}"
- Points="2 0 2 6 14 6 14 0 15 0 15 7 1 7 1 0" />
- <Path
- HorizontalAlignment="Center"
- Data="M10.807106,9 L15,13.3928931 L15,16 L14,16 L14,14 L9.999999,14 L9.999,10 L2,10 L2,16 L1,16 L1,9 L10.807106,9 Z M13.237,13 L10.999,10.64 L10.999,13 L13.237,13 Z"
- Fill="{StaticResource MenuIco.fill}" />
- </Grid>
- <TextBlock Style="{StaticResource PagesView_txtContext}" Text="Vertical" />
- </StackPanel>
- </RadioButton>
- <RadioButton
- Name="RbtnHorizontal"
- Margin="8,0,0,0"
- GroupName="ScrollMode"
- Style="{StaticResource PageViewRadioBtn}">
- <StackPanel Margin="0,0,3,0">
- <Grid Margin="0,0,0,8">
- <Polygon
- HorizontalAlignment="Center"
- Fill="{StaticResource MenuIco.fill}"
- Points="2 0 2 6 14 6 14 0 15 0 15 7 1 7 1 0" />
- <Path
- HorizontalAlignment="Center"
- Data="M10.807106,9 L15,13.3928931 L15,16 L14,16 L14,14 L9.999999,14 L9.999,10 L2,10 L2,16 L1,16 L1,9 L10.807106,9 Z M13.237,13 L10.999,10.64 L10.999,13 L13.237,13 Z"
- Fill="{StaticResource MenuIco.fill}" />
- </Grid>
- <TextBlock Style="{StaticResource PagesView_txtContext}" Text="Vertical" />
- </StackPanel>
- </RadioButton>
- </StackPanel>
- <TextBlock
- Name="txtSplitMode"
- Margin="0,26,0,14"
- Style="{StaticResource PagesView_titleContext}"
- Text="分屏视图" />
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="80" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0" Orientation="Horizontal">
- <RadioButton
- Name="RbtnDisable"
- Command="{Binding DisableCommand}"
- GroupName="SplitMode"
- IsChecked="True"
- Style="{StaticResource SplitModeViewRadioBtn}">
- <StackPanel Margin="0,0,3,0">
- <Path
- Margin="0,0,0,8"
- HorizontalAlignment="Center"
- Data="M14,0 L14,16 L2,16 L2,0 L14,0 Z M13,1 L3,1 L3,15 L13,15 L13,1 Z M8.57128906,5.79882813 L10.0654297,10 L9.03417969,10 L8.73535156,9.06542969 L7.24121094,9.06542969 L6.9453125,10 L5.91992188,10 L7.44921875,5.79882813 L8.57128906,5.79882813 Z M7.99707031,6.54882813 L7.97363281,6.54882813 C7.96386719,6.671875 7.93945312,6.79394531 7.90039062,6.91503906 L7.90039062,6.91503906 L7.44335938,8.33886719 L8.51855469,8.33886719 L8.06738281,6.92675781 C8.03417969,6.82128906 8.01074219,6.6953125 7.99707031,6.54882813 L7.99707031,6.54882813"
- Fill="{StaticResource MenuIco.fill}" />
- <TextBlock
- x:Name="DisableText"
- Style="{StaticResource PagesView_txtContext}"
- Text="单屏" />
- </StackPanel>
- </RadioButton>
- <RadioButton
- Name="RbtnVerticalSplit"
- Margin="5,0,5,0"
- Command="{Binding VerticalSplitScreenCommand}"
- GroupName="SplitMode"
- Style="{StaticResource SplitModeViewRadioBtn}">
- <StackPanel Margin="0,0,3,0">
- <Path
- Margin="0,0,0,8"
- HorizontalAlignment="Center"
- Data="M16,1 L16,15 L0,15 L0,1 L16,1 Z M1,2 L1,14 L7.5,14 L7.5,2 L1,2 Z M4.82128906,5.79882813 L6.31542969,10 L5.28417969,10 L4.98535156,9.06542969 L3.49121094,9.06542969 L3.1953125,10 L2.16992188,10 L3.69921875,5.79882813 L4.82128906,5.79882813 Z M11.8364258,5.79882813 L12.030682,5.8040896 C12.4059212,5.82513552 12.7015206,5.9093192 12.9174805,6.05664063 C13.1694336,6.22851563 13.2954102,6.47070313 13.2954102,6.78320313 C13.2954102,7.00976563 13.21875,7.20800781 13.0654297,7.37792969 C12.9121094,7.54785156 12.7163086,7.66601563 12.4780273,7.73242188 L12.4780273,7.73242188 L12.4780273,7.74414063 L12.6224365,7.76879883 C12.854777,7.82006836 13.0454102,7.92220052 13.1943359,8.07519531 C13.3730469,8.25878906 13.4624023,8.48242188 13.4624023,8.74609375 C13.4624023,9.13085938 13.324707,9.43603516 13.0493164,9.66162109 C12.7739258,9.88720703 12.3979492,10 11.9213867,10 L11.9213867,10 L10.3071289,10 L10.3071289,5.79882813 L11.8364258,5.79882813 Z M11.7719727,8.1953125 L11.253418,8.1953125 L11.253418,9.30273438 L11.7661133,9.30273438 C11.9848633,9.30273438 12.15625,9.25195313 12.2802734,9.15039063 C12.4042969,9.04882813 12.4663086,8.91015625 12.4663086,8.734375 C12.4663086,8.56640625 12.4052734,8.43457031 12.2832031,8.33886719 C12.1611328,8.24316406 11.9907227,8.1953125 11.7719727,8.1953125 L11.7719727,8.1953125 Z M4.24707031,6.54882813 L4.22363281,6.54882813 L4.20898438,6.67154948 C4.19596354,6.7531467 4.17643229,6.8343099 4.15039062,6.91503906 L4.15039062,6.91503906 L3.69335938,8.33886719 L4.76855469,8.33886719 L4.31738281,6.92675781 L4.2874349,6.81445313 C4.26963976,6.73502604 4.2561849,6.64648438 4.24707031,6.54882813 L4.24707031,6.54882813 Z M11.6079102,6.49609375 L11.253418,6.49609375 L11.253418,7.4921875 L11.6694336,7.4921875 C11.8647461,7.4921875 12.0185547,7.44482422 12.1308594,7.35009766 C12.2431641,7.25537109 12.2993164,7.125 12.2993164,6.95898438 C12.2993164,6.65039063 12.0688477,6.49609375 11.6079102,6.49609375 L11.6079102,6.49609375 Z M8.5,14 L15,14 L15,2 L8.5,2 L8.5,14 Z"
- Fill="{StaticResource MenuIco.fill}" />
- <TextBlock
- x:Name="VerticalText"
- Style="{StaticResource PagesView_txtContext}"
- Text="垂直" />
- </StackPanel>
- </RadioButton>
- <RadioButton
- Name="RbtnHorizontalSplit"
- Command="{Binding VerticalSplitScreenCommand}"
- GroupName="SplitMode"
- Style="{StaticResource SplitModeViewRadioBtn}">
- <StackPanel Margin="0,0,3,0">
- <Path
- Margin="0,0,0,8"
- HorizontalAlignment="Center"
- Data="M16,16.5 L0,16.5 L0,0.5 L16,0.5 L16,16.5 Z M15,9 L1,9 L1,15.5 L15,15.5 L15,9 Z M8.08642578,10.0488281 C8.55517578,10.0488281 8.91552734,10.1347656 9.16748047,10.3066406 C9.41943359,10.4785156 9.54541016,10.7207031 9.54541016,11.0332031 C9.54541016,11.2597656 9.46875,11.4580078 9.31542969,11.6279297 C9.16210938,11.7978516 8.96630859,11.9160156 8.72802734,11.9824219 L8.72802734,11.9824219 L8.72802734,11.9941406 C9.02685547,12.03125 9.265625,12.1416016 9.44433594,12.3251953 C9.62304688,12.5087891 9.71240234,12.7324219 9.71240234,12.9960937 C9.71240234,13.3808594 9.57470703,13.6860352 9.29931641,13.9116211 C9.02392578,14.137207 8.64794922,14.25 8.17138672,14.25 L8.17138672,14.25 L6.55712891,14.25 L6.55712891,10.0488281 Z M8.02197266,12.4453125 L7.50341797,12.4453125 L7.50341797,13.5527344 L8.01611328,13.5527344 C8.23486328,13.5527344 8.40625,13.5019531 8.53027344,13.4003906 C8.65429688,13.2988281 8.71630859,13.1601562 8.71630859,12.984375 C8.71630859,12.8164062 8.65527344,12.6845703 8.53320312,12.5888672 C8.41113281,12.4931641 8.24072266,12.4453125 8.02197266,12.4453125 L8.02197266,12.4453125 Z M7.85791016,10.7460937 L7.50341797,10.7460937 L7.50341797,11.7421875 L7.91943359,11.7421875 C8.11474609,11.7421875 8.26855469,11.6948242 8.38085938,11.6000977 C8.49316406,11.5053711 8.54931641,11.375 8.54931641,11.2089844 C8.54931641,10.9003906 8.31884766,10.7460937 7.85791016,10.7460937 L7.85791016,10.7460937 Z M15,1.5 L1,1.5 L1,8 L15,8 L15,1.5 Z M8.57128906,2.54882812 L10.0654297,6.75 L9.03417969,6.75 L8.73535156,5.81542969 L7.24121094,5.81542969 L6.9453125,6.75 L5.91992188,6.75 L7.44921875,2.54882812 L8.57128906,2.54882812 Z M7.99707031,3.29882812 L7.97363281,3.29882812 C7.96386719,3.421875 7.93945312,3.54394531 7.90039062,3.66503906 L7.90039062,3.66503906 L7.44335938,5.08886719 L8.51855469,5.08886719 L8.06738281,3.67675781 C8.03417969,3.57128906 8.01074219,3.4453125 7.99707031,3.29882812 L7.99707031,3.29882812 Z"
- Fill="{StaticResource MenuIco.fill}" />
- <TextBlock
- x:Name="HorizontalText"
- Style="{StaticResource PagesView_txtContext}"
- Text="水平" />
- </StackPanel>
- </RadioButton>
- </StackPanel>
- <ContentControl
- x:Name="SplitScreenViewContent"
- Grid.Row="1"
- VerticalAlignment="Stretch"
- prism:RegionManager.RegionName="{Binding SplitScreenViewRegionName}"
- Visibility="{Binding SplitScreenViewVisible}" />
- </Grid>
- <TextBlock
- Name="txtRotate"
- Margin="0,26,0,14"
- Style="{StaticResource PagesView_titleContext}"
- Text="旋转" />
- <StackPanel Orientation="Horizontal">
- <Button
- x:Name="btnRotateRight"
- Width="114"
- Height="32"
- Background="Transparent"
- BorderBrush="#FF273C62"
- BorderThickness="1"
- Command="{Binding RotateCommand}"
- CommandParameter="true">
- <StackPanel Orientation="Horizontal">
- <Path
- Width="16"
- Height="16"
- Data="M10.7071068,6 L14,9.29289322 L14,16 L5,16 L5,6 L10.7071068,6 Z M10,7 L6,7 L6,15 L13,15 L13,10 L10,10 L10,7 Z M11,7.708 L11,9 L12.292,9 L11,7.708 Z M5.19309241,0.5 L7.5,3 L5.19309241,5.5 L4.5,4.74889448 L5.653,3.499 L4.5,3.5 L4.35553999,3.50686658 C3.64242883,3.57500853 3.07500853,4.14242883 3.00686658,4.85553999 L3,5 L3,7.5 L2,7.5 L2,5 L2.00531768,4.83562431 C2.08643451,3.58587295 3.08587295,2.58643451 4.33562431,2.50531768 L4.5,2.5 L5.651,2.499 L4.5,1.25110552 L5.19309241,0.5 Z"
- Fill="{StaticResource MenuIco.fill}" />
- </StackPanel>
- </Button>
- <Button
- Name="btnRotateLeft"
- Width="114"
- Height="32"
- Margin="15,0,0,0"
- Background="Transparent"
- BorderBrush="#FF273C62"
- BorderThickness="1"
- Command="{Binding RotateCommand}"
- CommandParameter="false">
- <StackPanel Orientation="Horizontal">
- <Path
- Width="16"
- Height="16"
- Data="M7.70710678,6 L11,9.29289322 L11,16 L2,16 L2,6 L7.70710678,6 Z M7,7 L3,7 L3,15 L10,15 L10,10 L7,10 L7,7 Z M8,7.708 L8,9 L9.292,9 L8,7.708 Z M10.8069076,0.5 L11.5,1.25110552 L10.349,2.499 L11.5,2.5 L11.6643757,2.50531768 C12.914127,2.58643451 13.9135655,3.58587295 13.9946823,4.83562431 L13.9946823,4.83562431 L14,5 L14,7.5 L13,7.5 L13,5 L12.9931334,4.85553999 C12.9249915,4.14242883 12.3575712,3.57500853 11.64446,3.50686658 L11.64446,3.50686658 L11.5,3.5 L10.347,3.499 L11.5,4.74889448 L10.8069076,5.5 L8.5,3 L10.8069076,0.5 Z"
- Fill="{StaticResource MenuIco.fill}" />
- </StackPanel>
- </Button>
- </StackPanel>
- <TextBlock
- Name="txtThemes"
- Margin="0,26,0,14"
- Style="{StaticResource PagesView_titleContext}"
- Text="主题" />
- <!--<local:ThemesContent x:Name="ThemesCtrl" Margin="-4,0,-4,0" />-->
- <ContentControl
- x:Name="ThemesContent"
- VerticalAlignment="Stretch"
- prism:RegionManager.RegionName="{Binding ThemesContentName}" />
- </StackPanel>
- </UserControl>
|