123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356 |
- <ResourceDictionary
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/Resources/Common/Colors.xaml"/>
- </ResourceDictionary.MergedDictionaries>
- <Style TargetType="{x:Type Button}">
- <Setter Property="Cursor" Value="Hand"/>
- </Style>
- <Style x:Key="PrimaryColorButtonStyle" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="bdr_main" Background="{StaticResource module-primary-color-brush}">
- <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Content" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="bdr_main" Property="Background" Value="{StaticResource module-primary-color-over-brush}"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="bdr_main" Property="Opacity" Value="0.5"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="CornerRadiusButtonStyle" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="bdr_main" Background="{StaticResource module-primary-color-brush}" CornerRadius="5">
- <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Content" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="bdr_main" Property="Background" Value="{StaticResource module-primary-color-over-brush}"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="bdr_main" Property="Opacity" Value="0.5"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ConfirmButtonStyle" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="bdr_main" Background="#45C609">
- <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Content" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="bdr_main" Property="Background" Value="#228B22"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="bdr_main" Property="Opacity" Value="0.5"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="CancelButtonStyle" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="bdr_main" Background="#D93600">
- <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Content" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="bdr_main" Property="Background" Value="#CC0000"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="bdr_main" Property="Opacity" Value="0.5"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="BackButtonStyle" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}" >
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="bdr_main" Background="#45C609">
- <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Content" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="bdr_main" Property="Background" Value="#228B22"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Setter Property="Width" Value="24"></Setter>
- <Setter Property="Height" Value="24"></Setter>
- <Setter Property="HorizontalAlignment" Value="Left"></Setter>
- <Setter Property="VerticalAlignment" Value="Center"></Setter>
- </Style>
- <Style x:Key="AlternativeColorButtonStyle" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="bdr_main" Background="{StaticResource module-alternative-color-brush}">
- <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Content" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="bdr_main" Property="Background" Value="{StaticResource module-alternative-color-over-brush}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="PrimaryColorDarkButtonStyle" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="bdr_main" Background="{StaticResource module-primary-color-dark-brush}">
- <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Content" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="bdr_main" Property="Background" Value="{StaticResource module-primary-color-dark-over-brush}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="PageButtonStyle" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="bdr_main" Background="Transparent">
- <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Content" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="FontSize" Value="15"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Setter Property="Width" Value="50"/>
- <Setter Property="FontSize" Value="15"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="Foreground" Value="{StaticResource module-alternative-color-brush}"/>
- </Style>
- <Style x:Key="NextPageButtonStyle" TargetType="Button" BasedOn="{StaticResource PageButtonStyle}">
- <Setter Property="Content" Value=">"/>
- </Style>
- <Style x:Key="PreviousPageButtonStyle" TargetType="Button" BasedOn="{StaticResource PageButtonStyle}">
- <Setter Property="Content" Value="<"/>
- </Style>
- <Style x:Key="TransparentButtonStyle" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="bdr_main" Background="Transparent">
- <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Content" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="bdr_main" Property="Background" Value="Transparent"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="DownloadButton" TargetType="{x:Type Button}" BasedOn="{StaticResource TransparentButtonStyle}">
- <Setter Property="Height" Value="50"></Setter>
- <Setter Property="Content">
- <Setter.Value>
- <Image Stretch="None" Source="/Resources/Images/file-download.png" />
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Content">
- <Setter.Value>
- <Image Stretch="None" Source="/Resources/Images/file-download-over.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="CloseButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
- <Setter Property="MinWidth" Value="0"/>
- <Setter Property="Margin" Value="0"/>
- <Setter Property="VerticalAlignment" Value="Center"/>
- <Setter Property="FontFamily" Value="微软雅黑"/>
- <Setter Property="FontWeight" Value="Normal"/>
- <Setter Property="FontSize" Value="36"/>
- <Setter Property="AutomationProperties.AutomationId" Value="BackButton"/>
- <Setter Property="AutomationProperties.Name" Value="Back"/>
- <Setter Property="AutomationProperties.ItemType" Value="Navigation Button"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid x:Name="RootGrid">
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Normal" />
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <DoubleAnimation Duration="0" To=".6" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CloseGlyph"/>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Pressed">
- <Storyboard>
- <DoubleAnimation Duration="0" To=".3" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CloseGlyph"/>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Disabled"/>
- </VisualStateGroup>
- <VisualStateGroup x:Name="FocusStates">
- <VisualState x:Name="Focused"/>
- <VisualState x:Name="Unfocused" />
- <VisualState x:Name="PointerFocused" />
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Viewbox xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Margin="3">
- <Grid Background="#00FFFFFF">
- <Path x:Name="CloseGlyph" Data="F1M54.0573,47.8776L38.1771,31.9974 54.0547,16.1198C55.7604,14.4141 55.7604,11.6511 54.0573,9.94531 52.3516,8.23962 49.5859,8.23962 47.8802,9.94531L32.0026,25.8229 16.1224,9.94531C14.4167,8.23962 11.6511,8.23962 9.94794,9.94531 8.24219,11.6511 8.24219,14.4141 9.94794,16.1198L25.8255,32 9.94794,47.8776C8.24219,49.5834 8.24219,52.3477 9.94794,54.0534 11.6511,55.7572 14.4167,55.7585 16.1224,54.0534L32.0026,38.1745 47.8802,54.0534C49.5859,55.7585 52.3516,55.7572 54.0573,54.0534 55.7604,52.3477 55.763,49.5834 54.0573,47.8776z" Stretch="Uniform" Fill="{StaticResource module-primary-color-brush}" Width="26" Height="26" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5"/>
- </Grid>
- </Viewbox>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="MaximizeButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
- <Setter Property="MinWidth" Value="0"/>
- <Setter Property="Margin" Value="0"/>
- <Setter Property="VerticalAlignment" Value="Center"/>
- <Setter Property="FontFamily" Value="微软雅黑"/>
- <Setter Property="FontWeight" Value="Normal"/>
- <Setter Property="FontSize" Value="36"/>
- <Setter Property="AutomationProperties.AutomationId" Value="BackButton"/>
- <Setter Property="AutomationProperties.Name" Value="Back"/>
- <Setter Property="AutomationProperties.ItemType" Value="Navigation Button"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid x:Name="RootGrid">
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Normal" />
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <DoubleAnimation Duration="0" To=".6" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MaximizeGlyph"/>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Pressed">
- <Storyboard>
- <DoubleAnimation Duration="0" To=".3" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MaximizeGlyph"/>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Disabled"/>
- </VisualStateGroup>
- <VisualStateGroup x:Name="FocusStates">
- <VisualState x:Name="Focused"/>
- <VisualState x:Name="Unfocused" />
- <VisualState x:Name="PointerFocused" />
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Viewbox xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Margin="4">
- <Grid Background="#00FFFFFF">
- <Path x:Name="MaximizeGlyph" Data="M27.421999,17.89L33.877998,17.89 33.877998,25.96 41.949001,25.96 41.949001,32.417 33.877998,32.417 33.877998,40.491002 27.421999,40.491002 27.421999,32.417 19.349001,32.417 19.349001,25.96 27.421999,25.96z M5.2010002,14.812001L5.2010002,43.574002 56.098,43.574002 56.098,14.812001z M29.868601,3.8870003C28.026201,3.8870015 26.534,5.3791957 26.534,7.2209921 26.534,9.0588851 28.026201,10.553999 29.868601,10.553999 31.7085,10.553999 33.202,9.0588851 33.202,7.2209921 33.202,5.3791957 31.7085,3.8870015 29.868601,3.8870003z M19.200649,3.8870003C17.359457,3.8870015 15.867001,5.3791957 15.867001,7.2209921 15.867001,9.0588851 17.359457,10.553999 19.200649,10.553999 21.042044,10.553999 22.536999,9.0588851 22.536999,7.2209921 22.536999,5.3791957 21.042044,3.8870015 19.200649,3.8870003z M8.5339956,3.8870003C6.69311,3.8870015 5.2010002,5.3791962 5.2010002,7.2209921 5.2010002,9.058886 6.69311,10.554 8.5339956,10.554 10.374949,10.554 11.867,9.058886 11.867,7.2209921 11.867,5.3791962 10.374949,3.8870015 8.5339956,3.8870003z M0,0L63.999001,0 63.999001,48.794999 0,48.794999z" Stretch="Uniform" Fill="{StaticResource module-primary-color-brush}" Width="24" Height="24" Margin="0,0,0,0"/>
- </Grid>
- </Viewbox>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="MinimizeButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
- <Setter Property="MinWidth" Value="0"/>
- <Setter Property="Margin" Value="0"/>
- <Setter Property="VerticalAlignment" Value="Center"/>
- <Setter Property="FontFamily" Value="微软雅黑"/>
- <Setter Property="FontWeight" Value="Normal"/>
- <Setter Property="FontSize" Value="36"/>
- <Setter Property="AutomationProperties.AutomationId" Value="BackButton"/>
- <Setter Property="AutomationProperties.Name" Value="Back"/>
- <Setter Property="AutomationProperties.ItemType" Value="Navigation Button"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid x:Name="RootGrid">
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Normal" />
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <DoubleAnimation Duration="0" To=".6" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MinimizeGlyph"/>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Pressed">
- <Storyboard>
- <DoubleAnimation Duration="0" To=".3" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MinimizeGlyph"/>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Disabled"/>
- </VisualStateGroup>
- <VisualStateGroup x:Name="FocusStates">
- <VisualState x:Name="Focused"/>
- <VisualState x:Name="Unfocused" />
- <VisualState x:Name="PointerFocused" />
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Viewbox xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Margin="0,5,0,0" VerticalAlignment="Bottom">
- <Grid Background="#00FFFFFF">
- <Path x:Name="MinimizeGlyph" Data="M0,0L53.333,0 53.333,8.888 0,8.888z" Stretch="Uniform" Fill="{StaticResource module-primary-color-brush}" Width="26" Height="28" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5"/>
- </Grid>
- </Viewbox>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|