|
@@ -8,6 +8,7 @@
|
|
|
mc:Ignorable="d"
|
|
|
SnapsToDevicePixels="True"
|
|
|
xmlns:cpdfcommon="clr-namespace:Compdfkit_Tools.Common;assembly=Compdfkit_Tools"
|
|
|
+ xmlns:cpdftools="clr-namespace:Compdfkit_Tools.PDFControl;assembly=Compdfkit_Tools"
|
|
|
xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz"
|
|
|
BorderThickness="{Binding RelativeSource={RelativeSource Mode=Self},Path=WindowState,Converter={StaticResource WindowStateToThicknessConverter}}"
|
|
|
Title="ComPDFKit V1.10.0" Height="720" Width="1080" >
|
|
@@ -28,7 +29,12 @@
|
|
|
</WindowChrome.WindowChrome>
|
|
|
|
|
|
<Window.Resources>
|
|
|
+ <cpdfcommon:HomePageHeightConverter x:Key="HomePageHeightConverter"></cpdfcommon:HomePageHeightConverter>
|
|
|
|
|
|
+ <cpdfcommon:HeightToTopMarginConverter x:Key="HeightToTopMarginConverter"></cpdfcommon:HeightToTopMarginConverter>
|
|
|
+
|
|
|
+ <cpdfcommon:BoolToVisibleConverter x:Key="BoolToVisibleConverter"></cpdfcommon:BoolToVisibleConverter>
|
|
|
+
|
|
|
<cpdfcommon:ShowDefaultCloseButtonConverter x:Key="ShowDefaultCloseButtonConverter"></cpdfcommon:ShowDefaultCloseButtonConverter>
|
|
|
|
|
|
<cpdfcommon:ShowIconConverter x:Key="ShowIconConverter"></cpdfcommon:ShowIconConverter>
|
|
@@ -126,7 +132,7 @@
|
|
|
<Path Data="M0 1.71429C0 0.767513 0.767512 0 1.71429 0H13.7143C14.6611 0 15.4286 0.767512 15.4286 1.71429V16.2857H1.71429C0.767512 16.2857 0 15.5182 0 14.5714V1.71429Z" Fill="#3863F1"/>
|
|
|
<Path Data="M10.857 3.71387C7.3855 3.71387 4.57129 6.52808 4.57129 9.99958C4.57129 13.4711 7.3855 16.2853 10.857 16.2853H15.4284V3.71387H10.857ZM10.857 7.71384C9.59459 7.71384 8.57125 8.73719 8.57125 9.99955C8.57125 11.2619 9.5946 12.2853 10.857 12.2853H15.4284V7.71384H10.857Z" Fill="White"/>
|
|
|
<Path Data="M18.2856 3.71387H15.4284L15.4284 7.71385H10.857C9.59465 7.71385 8.5713 8.7372 8.5713 9.99956C8.5713 11.2619 9.59465 12.2853 10.857 12.2853H15.4284L15.4284 16.2853L4.57129 16.2853V18.2853C4.57129 19.2321 5.3388 19.9996 6.28558 19.9996H18.2856C19.2324 19.9996 19.9999 19.2321 19.9999 18.2853V5.42815C19.9999 4.48138 19.2324 3.71387 18.2856 3.71387Z" Fill="#31BC98"/>
|
|
|
- </Grid>
|
|
|
+ </Grid>
|
|
|
</Viewbox>
|
|
|
|
|
|
<TextBlock x:Name="TextTitle" Grid.Column="1" MaxWidth="145" Margin="8,4,0,4" FontWeight="DemiBold" FontFamily="Segoe UI,Microsoft YaHei" Text="{Binding FileName}" TextTrimming="WordEllipsis" />
|
|
@@ -146,7 +152,7 @@
|
|
|
<Binding RelativeSource="{RelativeSource TemplatedParent}" Path="LogicalIndex" />
|
|
|
</MultiBinding>
|
|
|
</Button.Visibility>
|
|
|
-
|
|
|
+
|
|
|
</Button>
|
|
|
</Grid>
|
|
|
</Border>
|
|
@@ -256,7 +262,9 @@
|
|
|
<Grid Background="#273C62" Margin="0,-1,0,0">
|
|
|
<dragablz:TabablzControl Name="TabControl" ItemContainerStyle="{StaticResource DragablzItemStyle}" WindowChrome.IsHitTestVisibleInChrome="True" FixedHeaderCount="1">
|
|
|
<dragablz:TabablzControl.HeaderPrefixContent>
|
|
|
- <Grid Margin="10,0,0,0"></Grid>
|
|
|
+ <Grid Margin="10,0,0,0">
|
|
|
+ <ToggleButton x:Name="HomePageTBtn" Style="{StaticResource HomePageButtonStyle}" Width="100" Click="Button_Click"></ToggleButton>
|
|
|
+ </Grid>
|
|
|
</dragablz:TabablzControl.HeaderPrefixContent>
|
|
|
<dragablz:TabablzControl.InterTabController>
|
|
|
<dragablz:InterTabController />
|
|
@@ -303,6 +311,19 @@
|
|
|
</Grid>
|
|
|
</dragablz:TabablzControl.HeaderSuffixContent>
|
|
|
</dragablz:TabablzControl>
|
|
|
+ <!-- 这是一个容器用于显示其他内容 -->
|
|
|
+ <ContentControl x:Name="customContentControl" Visibility="{}" >
|
|
|
+ <ContentControl.Margin>
|
|
|
+ <Binding Path="ActualHeight" ElementName="TitleBarGrid" Converter="{StaticResource HeightToTopMarginConverter}" />
|
|
|
+ </ContentControl.Margin>
|
|
|
+ <ContentControl.Height>
|
|
|
+ <MultiBinding Converter="{StaticResource HomePageHeightConverter}">
|
|
|
+ <Binding ElementName="TabControl" Path="ActualHeight"></Binding>
|
|
|
+ <Binding ElementName="TitleBarGrid" Path="ActualHeight"></Binding>
|
|
|
+ </MultiBinding>
|
|
|
+ </ContentControl.Height>
|
|
|
+ <cpdftools:HomePageControl></cpdftools:HomePageControl>
|
|
|
+ </ContentControl>
|
|
|
</Grid>
|
|
|
|
|
|
<Border Name="PopupBorder" Background="#A0000000" Visibility="Collapsed">
|