123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Style x:Key="PathBaseStyle" TargetType="Path">
- <Setter Property="Stretch" Value="Uniform" />
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="FlowDirection" Value="LeftToRight" />
- </Style>
- <!-- 搜索 -->
- <Style
- x:Key="SearchPathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource SearchGeometry}" />
- </Style>
- <!-- 全屏返回 -->
- <Style
- x:Key="FullScreenReturnPathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource FullScreenReturnGeometry}" />
- </Style>
- <!-- 全屏 -->
- <Style
- x:Key="FullScreenPathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource FullScreenGeometry}" />
- </Style>
- <!-- windows -->
- <Style
- x:Key="WindowsPathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource WindowsGeometry}" />
- </Style>
- <!-- 保存 -->
- <Style
- x:Key="SavePathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource SaveGeometry}" />
- </Style>
- <!-- 下载 -->
- <Style
- x:Key="DownloadPathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource DownloadGeometry}" />
- </Style>
- <!-- 放大 -->
- <Style
- x:Key="EnlargePathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource EnlargeGeometry}" />
- </Style>
- <!-- 缩小 -->
- <Style
- x:Key="ReducePathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource ReduceGeometry}" />
- </Style>
- <!-- 向左旋转 -->
- <Style
- x:Key="RotatePathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource RotateLeftGeometry}" />
- </Style>
- <!-- 日历 -->
- <Style
- x:Key="CalendarPathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource CalendarGeometry}" />
- </Style>
- <!-- 删除 -->
- <Style
- x:Key="DeletePathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource DeleteGeometry}" />
- </Style>
- <!-- 关闭 -->
- <Style
- x:Key="ClosePathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource CloseGeometry}" />
- </Style>
- <!-- 下 -->
- <Style
- x:Key="DownPathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource DownGeometry}" />
- </Style>
- <!-- 时钟 -->
- <Style
- x:Key="ClockPathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource ClockGeometry}" />
- </Style>
- <!-- 向左 -->
- <Style
- x:Key="LeftPathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource LeftGeometry}" />
- </Style>
- <!-- 向右 -->
- <Style
- x:Key="RightPathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="RenderTransformOrigin" Value="0.5, 0.5" />
- <Setter Property="RenderTransform">
- <Setter.Value>
- <TransformGroup>
- <ScaleTransform ScaleX="-1" ScaleY="1" />
- <SkewTransform AngleX="0" AngleY="0" />
- <RotateTransform Angle="0" />
- <TranslateTransform />
- </TransformGroup>
- </Setter.Value>
- </Setter>
- <Setter Property="Data" Value="{StaticResource LeftGeometry}" />
- </Style>
- <!-- 上和下的组合 -->
- <Style
- x:Key="UpDownPathStyle"
- TargetType="Path"
- BasedOn="{StaticResource PathBaseStyle}">
- <Setter Property="Data" Value="{StaticResource UpDownGeometry}" />
- </Style>
- </ResourceDictionary>
|