123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:PixiEditor.Styles">
- <Style TargetType="Button" x:Key="MenuButton">
- <Setter Property="Height" Value="30"/>
- <Setter Property="Width" Value="60"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Foreground" Value="Snow"/>
- <Setter Property="BorderThickness" Value="0"/>
- </Style>
-
- <Style TargetType="Button" x:Key="MenuInsideButtonStyle">
- <Setter Property="Height" Value="20"/>
- <Setter Property="Width" Value="185"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Foreground" Value="Snow"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="HorizontalContentAlignment" Value="Left"/>
- <Setter Property="OverridesDefaultStyle" Value="True"/>
- <Setter Property="DataContext" Value="{DynamicResource ViewModelMain}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Grid Background="{TemplateBinding Background}">
- <ContentPresenter x:Name="MyContentPresenter"
- Content="{TemplateBinding Content}"/>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsEnabled" Value="False">
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Foreground" Value="DarkGray"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="#666666"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style TargetType="ListView" x:Key="MenuListViewStyle">
- <Setter Property="Background" Value="#343636"/>
- <Setter Property="Height" Value="300"/>
- <Setter Property="Width" Value="200"/>
- <Style.Resources>
- <Style TargetType="ContentControl">
- <Setter Property="Foreground" Value="Snow"/>
- <Setter Property="Margin" Value="0,0,0,2"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="HorizontalContentAlignment" Value="Left"/>
- <Setter Property="Height" Value="290"/>
- <Setter Property="Width" Value="185"/>
- </Style>
- </Style.Resources>
- </Style>
-
- </ResourceDictionary>
|