|
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
<ResourceDictionary Source="pack://application:,,,/Philisense.Congress;component/Resources/Styles/Colors.xaml"></ResourceDictionary>
|
|
|
<ResourceDictionary Source="pack://application:,,,/Philisense.Congress;component/Resources/Styles/Fonts.xaml"></ResourceDictionary>
|
|
|
<ResourceDictionary Source="pack://application:,,,/Philisense.Congress;component/Resources/Styles/Sizes.xaml"></ResourceDictionary>
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
<!--body 源码行数:13-15 902-908-->
|
|
|
<!--窗体样式-->
|
|
|
<!--Font针对TextBlock-->
|
|
|
<Style BasedOn="{x:Null}" TargetType="{x:Type Window}">
|
|
|
<Setter Property="FontFamily" Value="{DynamicResource DefaultFontFamily}"></Setter>
|
|
|
<Setter Property="FontSize" Value="{DynamicResource DefaultFontSize}"></Setter>
|
|
|
<Setter Property="Foreground" Value="{DynamicResource DefaultForeground}"></Setter>
|
|
|
<Setter Property="Background" Value="{DynamicResource DefaultBackground}"></Setter>
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
<!-- 菜单按钮组模板 -->
|
|
|
<Style x:Key="CustomWindowMenuBtn" TargetType="Button">
|
|
|
<Setter Property="Foreground" Value="White"></Setter>
|
|
|
<Setter Property="Opacity" Value="0.2"></Setter>
|
|
|
<Setter Property="Template">
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="Button">
|
|
|
<TextBlock FontSize="25" Text="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
|
|
|
<ControlTemplate.Triggers>
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
<Setter Property="Opacity" Value="1.0"></Setter>
|
|
|
</Trigger>
|
|
|
</ControlTemplate.Triggers>
|
|
|
</ControlTemplate>
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
</Style>
|
|
|
|
|
|
<!-- 通用窗口模板 -->
|
|
|
<ControlTemplate x:Key="CustomWindowTemplate" TargetType="Window">
|
|
|
<Border Margin="3" CornerRadius="5,5,5,5" Background="#1BA1E2" >
|
|
|
<Border.Effect>
|
|
|
<DropShadowEffect BlurRadius="3" RenderingBias="Performance" ShadowDepth="0" Opacity="1"/>
|
|
|
</Border.Effect>
|
|
|
<Grid>
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="50"></RowDefinition>
|
|
|
<RowDefinition></RowDefinition>
|
|
|
</Grid.RowDefinitions>
|
|
|
<Grid Grid.Row="0">
|
|
|
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,0,0,0"
|
|
|
Text="{TemplateBinding Title}" Foreground="#FFFFFF" FontSize="20">提示信息</TextBlock>
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,10,0" VerticalAlignment="Top">
|
|
|
<!--<Button Height="20" Width="20" Content="-"
|
|
|
Style="{StaticResource ResourceKey=CustomWindowMenuBtn}" />
|
|
|
<Button Height="20" Width="20" Content="□"
|
|
|
Style="{StaticResource ResourceKey=CustomWindowMenuBtn}" />
|
|
|
<Button Height="20" Width="20" Content="×"
|
|
|
Style="{StaticResource ResourceKey=CustomWindowMenuBtn}" />-->
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
<Grid Grid.Row="1">
|
|
|
<AdornerDecorator>
|
|
|
<ContentPresenter></ContentPresenter>
|
|
|
</AdornerDecorator>
|
|
|
</Grid>
|
|
|
</Grid>
|
|
|
</Border>
|
|
|
</ControlTemplate>
|
|
|
|
|
|
<!-- 通用窗口样式 -->
|
|
|
<Style x:Key="CustomWindowChrome" TargetType="Window">
|
|
|
<Setter Property="AllowsTransparency" Value="True"></Setter>
|
|
|
<!--<Setter Property="Background" Value="Transparent"></Setter>-->
|
|
|
<Setter Property="WindowStyle" Value="None"></Setter>
|
|
|
<Setter Property="ResizeMode" Value="NoResize"></Setter>
|
|
|
<Setter Property="Template" Value="{StaticResource CustomWindowTemplate}"></Setter>
|
|
|
</Style>
|
|
|
|
|
|
</ResourceDictionary> |