123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <ImageBrush x:Key="imgOK" Stretch="UniformToFill" ImageSource="/HistoryDLL;component/Data/HistoryWallPage/Thumb/ok_idle.png" />
- <ImageBrush x:Key="imgOKOver" Stretch="UniformToFill" ImageSource="/HistoryDLL;component/Data/HistoryWallPage/Thumb/ok_focus.png" />
- <ImageBrush x:Key="imgCancel" Stretch="UniformToFill" ImageSource="/HistoryDLL;component/Data/HistoryWallPage/Thumb/exit_idle.png" />
- <ImageBrush x:Key="imgCancelOver" Stretch="UniformToFill" ImageSource="/HistoryDLL;component/Data/HistoryWallPage/Thumb/exit_focus.png" />
- <ImageBrush x:Key="imgHome" Stretch="UniformToFill" ImageSource="/HistoryDLL;component/Data/HistoryWallPage/Thumb/home.png" />
- <ImageBrush x:Key="imgLanguageBk" Stretch="UniformToFill" ImageSource="/HistoryDLL;component/Data/HistoryWallPage/Thumb/language_bk.png" />
- <Style x:Key="okButton" TargetType="Button">
- <Setter Property="SnapsToDevicePixels" Value="true"/>
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="Border" CornerRadius="2" BorderThickness="0" Background="{StaticResource imgOK}" BorderBrush="Transparent">
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="Border" Property="Background" Value="{StaticResource imgOKOver}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="Border" Property="Background" Value="{StaticResource imgOKOver}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="Border" Property="Background" Value="{StaticResource imgOKOver}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="exitButton" TargetType="Button">
- <Setter Property="SnapsToDevicePixels" Value="true"/>
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="Border" CornerRadius="2" BorderThickness="0" Background="{StaticResource imgCancel}" BorderBrush="Transparent">
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="Border" Property="Background" Value="{StaticResource imgCancelOver}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="Border" Property="Background" Value="{StaticResource imgCancelOver}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="Border" Property="Background" Value="{StaticResource imgCancelOver}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ScrollBarThumb"
- TargetType="{x:Type Thumb}">
- <Setter Property="OverridesDefaultStyle"
- Value="true"/>
- <Setter Property="IsTabStop"
- Value="false"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Grid>
- <Rectangle
- Fill="White"
- />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="HorizontalScrollBarPageButton"
- TargetType="{x:Type RepeatButton}">
- <Setter Property="OverridesDefaultStyle"
- Value="true"/>
- <Setter Property="Background"
- Value="Transparent"/>
- <Setter Property="Focusable"
- Value="false"/>
- <Setter Property="IsTabStop"
- Value="false"/>
- <Setter Property="Opacity"
- Value="0"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Rectangle Fill="{TemplateBinding Background}"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="VerticalScrollBarPageButton"
- TargetType="{x:Type RepeatButton}">
- <Setter Property="OverridesDefaultStyle"
- Value="true"/>
- <Setter Property="Background"
- Value="Transparent"/>
- <Setter Property="Focusable"
- Value="false"/>
- <Setter Property="IsTabStop"
- Value="false"/>
- <Setter Property="Opacity"
- Value="0"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Rectangle Fill="{TemplateBinding Background}"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="for_scrollbar"
- TargetType="{x:Type ScrollBar}">
- <Setter Property="Stylus.IsPressAndHoldEnabled"
- Value="false"/>
- <Setter Property="Stylus.IsFlicksEnabled"
- Value="false"/>
- <Setter Property="Background"
- Value="Transparent"/>
- <Setter Property="Margin"
- Value="0,1,1,6"/>
- <Setter Property="Width"
- Value="5"/>
- <Setter Property="MinWidth"
- Value="5"/>
- <Setter Property="Opacity"
- Value="0"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ScrollBar}">
- <Grid x:Name="Bg" SnapsToDevicePixels="true">
- <Track x:Name="PART_Track"
- IsEnabled="{TemplateBinding IsMouseOver}"
- IsDirectionReversed="true">
- <Track.DecreaseRepeatButton>
- <RepeatButton
- Style="{StaticResource VerticalScrollBarPageButton}"
- Command="{x:Static ScrollBar.PageUpCommand}"/>
- </Track.DecreaseRepeatButton>
- <Track.IncreaseRepeatButton>
- <RepeatButton
- Style="{StaticResource VerticalScrollBarPageButton}"
- Command="{x:Static ScrollBar.PageDownCommand}"/>
- </Track.IncreaseRepeatButton>
- <Track.Thumb>
- <Thumb Style="{StaticResource ScrollBarThumb}"/>
- </Track.Thumb>
- </Track>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="Orientation"
- Value="Horizontal">
- <Setter Property="Background"
- Value="Transparent"/>
- <Setter Property="Margin"
- Value="1,0,6,1"/>
- <Setter Property="Height"
- Value="5"/>
- <Setter Property="MinHeight"
- Value="5"/>
- <Setter Property="Width"
- Value="Auto"/>
- <Setter Property="Opacity"
- Value="0"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ScrollBar}">
- <Grid x:Name="Bg" SnapsToDevicePixels="true">
- <Track x:Name="PART_Track"
- IsEnabled="{TemplateBinding IsMouseOver}">
- <Track.DecreaseRepeatButton>
- <RepeatButton Style="{StaticResource HorizontalScrollBarPageButton}"
- Command="{x:Static ScrollBar.PageLeftCommand}"/>
- </Track.DecreaseRepeatButton>
- <Track.IncreaseRepeatButton>
- <RepeatButton Style="{StaticResource HorizontalScrollBarPageButton}"
- Command="{x:Static ScrollBar.PageRightCommand}"/>
- </Track.IncreaseRepeatButton>
- <Track.Thumb>
- <Thumb Style="{StaticResource ScrollBarThumb}"/>
- </Track.Thumb>
- </Track>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Trigger>
- </Style.Triggers>
- </Style>
- <!--<Style TargetType="{x:Type ScrollViewer}">
- <Setter Property="BorderBrush"
- Value="LightGray"/>
- <Setter Property="BorderThickness"
- Value="0"/>
- <Setter Property="HorizontalContentAlignment"
- Value="Left"/>
- <Setter Property="HorizontalScrollBarVisibility"
- Value="Auto"/>
- <Setter Property="VerticalContentAlignment"
- Value="Top"/>
- <Setter Property="VerticalScrollBarVisibility"
- Value="Auto"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ScrollViewer}">
- <Border BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- SnapsToDevicePixels="True">
- <Grid Background="{TemplateBinding Background}">
- <ScrollContentPresenter
- Cursor="{TemplateBinding Cursor}"
- Margin="{TemplateBinding Padding}"
- ContentTemplate="{TemplateBinding ContentTemplate}"/>
- <ScrollBar x:Name="PART_VerticalScrollBar"
- HorizontalAlignment="Right"
- Maximum="{TemplateBinding ScrollableHeight}"
- Orientation="Vertical"
- Style="{StaticResource for_scrollbar}"
- ViewportSize="{TemplateBinding ViewportHeight}"
- Value="{TemplateBinding VerticalOffset}"
- Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"/>
- <ScrollBar x:Name="PART_HorizontalScrollBar"
- Maximum="{TemplateBinding ScrollableWidth}"
- Orientation="Horizontal"
- Style="{StaticResource for_scrollbar}"
- VerticalAlignment="Bottom"
- Value="{TemplateBinding HorizontalOffset}"
- ViewportSize="{TemplateBinding ViewportWidth}"
- Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"/>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <EventTrigger RoutedEvent="ScrollChanged">
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation
- Storyboard.TargetName="PART_VerticalScrollBar"
- Storyboard.TargetProperty="Opacity"
- To="1"
- Duration="0:0:0.5"/>
- <DoubleAnimation
- Storyboard.TargetName="PART_VerticalScrollBar"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.5"
- BeginTime="0:0:0.5"/>
- <DoubleAnimation
- Storyboard.TargetName="PART_HorizontalScrollBar"
- Storyboard.TargetProperty="Opacity"
- To="1"
- Duration="0:0:0.5"/>
- <DoubleAnimation
- Storyboard.TargetName="PART_HorizontalScrollBar"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.5"
- BeginTime="0:0:0.5"/>
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- <EventTrigger RoutedEvent="MouseEnter"
- SourceName="PART_VerticalScrollBar">
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation
- Storyboard.TargetName="PART_VerticalScrollBar"
- Storyboard.TargetProperty="Opacity"
- To="1"
- Duration="0:0:0.5"/>
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- <EventTrigger RoutedEvent="MouseLeave"
- SourceName="PART_VerticalScrollBar">
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation
- Storyboard.TargetName="PART_VerticalScrollBar"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.5"/>
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- <EventTrigger RoutedEvent="MouseEnter"
- SourceName="PART_HorizontalScrollBar">
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation
- Storyboard.TargetName="PART_HorizontalScrollBar"
- Storyboard.TargetProperty="Opacity"
- To="1"
- Duration="0:0:0.5"/>
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- <EventTrigger RoutedEvent="MouseLeave"
- SourceName="PART_HorizontalScrollBar">
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation
- Storyboard.TargetName="PART_HorizontalScrollBar"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.5"/>
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>-->
- <Style x:Key="homeSwitchBtn" TargetType="Button">
- <Setter Property="SnapsToDevicePixels" Value="true"/>
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="Border" CornerRadius="2" BorderThickness="0" Background="{StaticResource imgHome}" BorderBrush="Transparent" Opacity="0.8">
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="Border" Property="Opacity" Value="1" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="languageSwitchBtn" TargetType="Button">
- <Setter Property="SnapsToDevicePixels" Value="true"/>
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="Border" CornerRadius="2" BorderThickness="0" Background="{StaticResource imgLanguageBk}" BorderBrush="Transparent" Opacity="0.8">
- <TextBlock Text="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="22" Foreground="White"></TextBlock>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="Border" Property="Opacity" Value="1" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style TargetType="{x:Type Button}" x:Key="detailViewerCloseButton">
- <Setter Property="IsEnabled" Value="True"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid x:Name="uxRootGrid" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Background="{TemplateBinding Background}"
- Stylus.IsPressAndHoldEnabled="False" FocusVisualStyle="{x:Null}" RenderTransformOrigin="0.5,0.5">
- <Grid.RenderTransform>
- <ScaleTransform />
- </Grid.RenderTransform>
- <TextBlock FontWeight="Bold" FontSize="18" Text="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}"
- HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
- </Grid>
- <ControlTemplate.Triggers>
- <EventTrigger RoutedEvent="Mouse.PreviewMouseDown">
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation
- Duration="0:0:0.15"
- Storyboard.TargetName="uxRootGrid"
- Storyboard.TargetProperty="(RenderTransform).(ScaleTransform.ScaleX)"
- To="0.9"/>
- <DoubleAnimation
- Duration="0:0:0.15"
- Storyboard.TargetName="uxRootGrid"
- Storyboard.TargetProperty="(RenderTransform).(ScaleTransform.ScaleY)"
- To="0.9"/>
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- <EventTrigger RoutedEvent="Mouse.MouseLeave">
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation
- Duration="0:0:0.15"
- Storyboard.TargetName="uxRootGrid"
- Storyboard.TargetProperty="(RenderTransform).(ScaleTransform.ScaleX)"
- To="1"/>
- <DoubleAnimation
- Duration="0:0:0.15"
- Storyboard.TargetName="uxRootGrid"
- Storyboard.TargetProperty="(RenderTransform).(ScaleTransform.ScaleY)"
- To="1"/>
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style TargetType="{x:Type RadioButton}" x:Key="uxdetailViewerLanBtn">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Grid x:Name="uxGd" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Background="{TemplateBinding Background}">
- <TextBlock x:Name="uxMainTx" HorizontalAlignment="Center" VerticalAlignment="Center"
- Text="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}"></TextBlock>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="false">
- <Setter TargetName="uxMainTx" Property="Opacity" Value="0.7" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|