|
@@ -12,24 +12,19 @@
|
|
xmlns:viewmodels="clr-namespace:PDF_Office.ViewModels"
|
|
xmlns:viewmodels="clr-namespace:PDF_Office.ViewModels"
|
|
Width="1280"
|
|
Width="1280"
|
|
Height="800"
|
|
Height="800"
|
|
- MinWidth="1280"
|
|
|
|
|
|
+ MinWidth="800"
|
|
MinHeight="800"
|
|
MinHeight="800"
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
Activated="Window_Activated"
|
|
Activated="Window_Activated"
|
|
|
|
+ Closed="Window_Closed"
|
|
|
|
+ Style="{DynamicResource WindowStyle}"
|
|
|
|
+ UseLayoutRounding="True"
|
|
WindowStartupLocation="CenterScreen"
|
|
WindowStartupLocation="CenterScreen"
|
|
mc:Ignorable="d">
|
|
mc:Ignorable="d">
|
|
- <WindowChrome.WindowChrome>
|
|
|
|
- <WindowChrome
|
|
|
|
- CaptionHeight="30"
|
|
|
|
- CornerRadius="0"
|
|
|
|
- GlassFrameThickness="-1"
|
|
|
|
- NonClientFrameEdges="None"
|
|
|
|
- ResizeBorderThickness="3"
|
|
|
|
- UseAeroCaptionButtons="False" />
|
|
|
|
- </WindowChrome.WindowChrome>
|
|
|
|
<Window.Resources>
|
|
<Window.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary>
|
|
<Style x:Key="DragablzItemStyle" TargetType="{x:Type dragablz:DragablzItem}">
|
|
<Style x:Key="DragablzItemStyle" TargetType="{x:Type dragablz:DragablzItem}">
|
|
|
|
+ <Setter Property="WindowChrome.IsHitTestVisibleInChrome" Value="True" />
|
|
<Setter Property="Template">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="dragablz:DragablzItem">
|
|
<ControlTemplate TargetType="dragablz:DragablzItem">
|
|
@@ -45,7 +40,8 @@
|
|
Margin="4,0,0,2"
|
|
Margin="4,0,0,2"
|
|
BorderBrush="#A0A2AE"
|
|
BorderBrush="#A0A2AE"
|
|
BorderThickness="1,1,1,0"
|
|
BorderThickness="1,1,1,0"
|
|
- CornerRadius="5,5,0,0">
|
|
|
|
|
|
+ CornerRadius="5,5,0,0"
|
|
|
|
+ WindowChrome.IsHitTestVisibleInChrome="True">
|
|
<Grid Background="Transparent">
|
|
<Grid Background="Transparent">
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto" />
|
|
<ColumnDefinition Width="auto" />
|
|
@@ -125,72 +121,100 @@
|
|
</Setter.Value>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Setter>
|
|
</Style>
|
|
</Style>
|
|
|
|
+
|
|
|
|
+ <Style x:Key="WindowStyle" TargetType="{x:Type Window}">
|
|
|
|
+ <Setter Property="WindowChrome.WindowChrome">
|
|
|
|
+ <Setter.Value>
|
|
|
|
+ <WindowChrome
|
|
|
|
+ CaptionHeight="32"
|
|
|
|
+ CornerRadius="10"
|
|
|
|
+ GlassFrameThickness="-1"
|
|
|
|
+ ResizeBorderThickness="5"
|
|
|
|
+ UseAeroCaptionButtons="False" />
|
|
|
|
+ </Setter.Value>
|
|
|
|
+ </Setter>
|
|
|
|
+ <Setter Property="Template">
|
|
|
|
+ <Setter.Value>
|
|
|
|
+ <ControlTemplate TargetType="{x:Type Window}">
|
|
|
|
+ <Border
|
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
|
+ BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}">
|
|
|
|
+ <AdornerDecorator>
|
|
|
|
+ <ContentPresenter x:Name="win_content" />
|
|
|
|
+ </AdornerDecorator>
|
|
|
|
+ </Border>
|
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
|
+ <Trigger Property="WindowState" Value="Maximized">
|
|
|
|
+ <!-- 调整边框 -->
|
|
|
|
+ <Setter TargetName="win_content" Property="Margin" Value="5,5,5,5" />
|
|
|
|
+ </Trigger>
|
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
|
+ </ControlTemplate>
|
|
|
|
+ </Setter.Value>
|
|
|
|
+ </Setter>
|
|
|
|
+ </Style>
|
|
</ResourceDictionary>
|
|
</ResourceDictionary>
|
|
</Window.Resources>
|
|
</Window.Resources>
|
|
- <Grid>
|
|
|
|
- <Grid.RowDefinitions>
|
|
|
|
- <RowDefinition Height="40" />
|
|
|
|
- <RowDefinition Height="*" />
|
|
|
|
- </Grid.RowDefinitions>
|
|
|
|
- <dragablz:TabablzControl
|
|
|
|
- Name="PDFViewerTab"
|
|
|
|
- Grid.RowSpan="2"
|
|
|
|
- prism:RegionManager.RegionName="{x:Static cus:RegionNames.MainRegion}"
|
|
|
|
- BorderThickness="0"
|
|
|
|
- ItemContainerStyle="{StaticResource DragablzItemStyle}"
|
|
|
|
- SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
|
|
|
|
- WindowChrome.IsHitTestVisibleInChrome="True">
|
|
|
|
- <dragablz:TabablzControl.InterTabController>
|
|
|
|
- <dragablz:InterTabController />
|
|
|
|
- </dragablz:TabablzControl.InterTabController>
|
|
|
|
- <dragablz:TabablzControl.HeaderSuffixContent>
|
|
|
|
|
|
+ <Border>
|
|
|
|
+ <Grid>
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
+ <RowDefinition Height="40" />
|
|
|
|
+ <RowDefinition Height="*" />
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
+ <dragablz:TabablzControl
|
|
|
|
+ Name="TabablzControl"
|
|
|
|
+ Grid.RowSpan="2"
|
|
|
|
+ BorderThickness="0"
|
|
|
|
+ ItemContainerStyle="{StaticResource DragablzItemStyle}"
|
|
|
|
+ SelectedItem="{Binding SelectedItem, Mode=TwoWay}">
|
|
|
|
+ <dragablz:TabablzControl.InterTabController>
|
|
|
|
+ <dragablz:InterTabController InterTabClient="{Binding InterTabClient}" />
|
|
|
|
+ </dragablz:TabablzControl.InterTabController>
|
|
|
|
+ <dragablz:TabablzControl.HeaderSuffixContent>
|
|
|
|
+ <Button
|
|
|
|
+ x:Name="BtnAdd"
|
|
|
|
+ Width="16"
|
|
|
|
+ Height="16"
|
|
|
|
+ Margin="9,7,200,5"
|
|
|
|
+ HorizontalAlignment="Left"
|
|
|
|
+ Background="Transparent"
|
|
|
|
+ BorderThickness="0"
|
|
|
|
+ Command="{Binding AddTab}"
|
|
|
|
+ Content="+"
|
|
|
|
+ WindowChrome.IsHitTestVisibleInChrome="True" />
|
|
|
|
+ </dragablz:TabablzControl.HeaderSuffixContent>
|
|
|
|
+ <dragablz:TabablzControl.HeaderPrefixContent>
|
|
|
|
+ <Grid
|
|
|
|
+ Width="16"
|
|
|
|
+ Height="38"
|
|
|
|
+ Margin="0,2,0,0"
|
|
|
|
+ Background="Transparent" />
|
|
|
|
+ </dragablz:TabablzControl.HeaderPrefixContent>
|
|
|
|
+ </dragablz:TabablzControl>
|
|
|
|
+ <!-- 标题栏右侧栏,关闭按钮,会员,试用等 -->
|
|
|
|
+ <StackPanel
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ Orientation="Horizontal"
|
|
|
|
+ WindowChrome.IsHitTestVisibleInChrome="True">
|
|
<Button
|
|
<Button
|
|
- x:Name="BtnAdd"
|
|
|
|
- Width="16"
|
|
|
|
- Height="16"
|
|
|
|
- Margin="9,7,200,5"
|
|
|
|
- HorizontalAlignment="Left"
|
|
|
|
- Background="Transparent"
|
|
|
|
- BorderThickness="0"
|
|
|
|
- Command="{Binding AddTab}"
|
|
|
|
- Content="+" />
|
|
|
|
- </dragablz:TabablzControl.HeaderSuffixContent>
|
|
|
|
- <dragablz:TabablzControl.HeaderPrefixContent>
|
|
|
|
- <Grid
|
|
|
|
- Width="16"
|
|
|
|
- Height="38"
|
|
|
|
- Margin="0,2,0,0"
|
|
|
|
- Background="Transparent" />
|
|
|
|
- </dragablz:TabablzControl.HeaderPrefixContent>
|
|
|
|
- <!--<TabItem Name="HomeTabControlItem">
|
|
|
|
- <TabItem.Content>
|
|
|
|
- <ContentControl prism:RegionManager.RegionName="ViwerRegion" />
|
|
|
|
- </TabItem.Content>
|
|
|
|
- </TabItem>-->
|
|
|
|
- </dragablz:TabablzControl>
|
|
|
|
-
|
|
|
|
- <!-- 标题栏右侧栏,关闭按钮,会员,试用等 -->
|
|
|
|
- <StackPanel
|
|
|
|
- HorizontalAlignment="Right"
|
|
|
|
- Orientation="Horizontal"
|
|
|
|
- WindowChrome.IsHitTestVisibleInChrome="True">
|
|
|
|
- <Button
|
|
|
|
- Name="BtnMiniSize"
|
|
|
|
- Width="40"
|
|
|
|
- Height="40"
|
|
|
|
- Click="BtnMiniSize_Click"
|
|
|
|
- Content="--" />
|
|
|
|
- <Button
|
|
|
|
- Name="BtnReStore"
|
|
|
|
- Width="40"
|
|
|
|
- Height="40"
|
|
|
|
- Click="BtnReStore_Click" />
|
|
|
|
- <Button
|
|
|
|
- Name="BtnClose"
|
|
|
|
- Width="40"
|
|
|
|
- Height="40"
|
|
|
|
- Click="BtnClose_Click"
|
|
|
|
- Content="X" />
|
|
|
|
- </StackPanel>
|
|
|
|
- </Grid>
|
|
|
|
|
|
+ Name="BtnMiniSize"
|
|
|
|
+ Width="40"
|
|
|
|
+ Height="40"
|
|
|
|
+ Click="BtnMiniSize_Click"
|
|
|
|
+ Content="--" />
|
|
|
|
+ <Button
|
|
|
|
+ Name="BtnReStore"
|
|
|
|
+ Width="40"
|
|
|
|
+ Height="40"
|
|
|
|
+ Click="BtnReStore_Click" />
|
|
|
|
+ <Button
|
|
|
|
+ Name="BtnClose"
|
|
|
|
+ Width="40"
|
|
|
|
+ Height="40"
|
|
|
|
+ Click="BtnClose_Click"
|
|
|
|
+ Content="X" />
|
|
|
|
+ </StackPanel>
|
|
|
|
+ </Grid>
|
|
|
|
+ </Border>
|
|
</Window>
|
|
</Window>
|