PgGridStyle.xaml 3.38 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
潘栩锋's avatar
潘栩锋 committed
4
                    xmlns:local="clr-namespace:FLY.Thick.Base.UI"
潘栩锋's avatar
潘栩锋 committed
5 6
                    xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks">
    <ResourceDictionary.MergedDictionaries>
潘栩锋's avatar
潘栩锋 committed
7 8
        <ResourceDictionary Source="pack://application:,,,/FLY.Thick.Base.UI;component/Themes/Styles.xaml"/>
        <ResourceDictionary Source="pack://application:,,,/FLY.Thick.Base.UI;component/Converter/Dictionary_MyConv.xaml"/>
潘栩锋's avatar
潘栩锋 committed
9
        
潘栩锋's avatar
潘栩锋 committed
10
    </ResourceDictionary.MergedDictionaries>
11 12 13


    <!--<Style x:Key="Styles.Card.Title" TargetType="TextBlock">
潘栩锋's avatar
潘栩锋 committed
14 15 16 17 18 19
        <Setter Property="Background" Value="#FFC107"/>
        <Setter Property="FontSize" Value="18"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="Padding" Value="20 5"/>
        <Setter Property="FontWeight" Value="Bold"/>
    </Style>
20 21

    <Style x:Key="Styles.Card.Border" TargetType="Border">
潘栩锋's avatar
潘栩锋 committed
22
        <Setter Property="Margin" Value="5"/>
23
        <Setter Property="Background" Value="{StaticResource MahApps.Brushes.ThemeBackground}"/>
潘栩锋's avatar
潘栩锋 committed
24 25 26
        <Setter Property="CornerRadius" Value="3"/>
        <Setter Property="Padding" Value="8"/>
        <Setter Property="BorderThickness" Value="1"/>
27 28 29 30 31 32 33
        <Setter Property="BorderBrush" Value="{StaticResource MahApps.Brushes.Gray8}"/>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="{StaticResource MahApps.Brushes.Gray1}" Opacity=".25" BlurRadius="5" ShadowDepth="3"/>
            </Setter.Value>
        </Setter>
    </Style>-->
潘栩锋's avatar
潘栩锋 committed
34

35
    <Style x:Key="Styles.Axis.Section" TargetType="lvc:AxisSection" >
潘栩锋's avatar
潘栩锋 committed
36 37 38 39 40 41 42 43 44 45
        <Setter Property="StrokeThickness" Value="1"/>
        <Setter Property="DataLabel" Value="False"/>
        <Setter Property="DisableAnimations" Value="True"/>
        <Setter Property="DataLabelForeground" Value="White"/>
        <Setter Property="Opacity" Value="0.1"/>
        <Setter Property="Stroke" Value="#FFFDC8C8"/>
        <Setter Property="Fill" Value="#59F7D8D8"/>
        <!--<Setter Property="Fill" Value="Orange" />-->
    </Style>

46
    <Style TargetType="{x:Type ToggleButton}" x:Key="Styles.ToggleButton.Check" >
潘栩锋's avatar
潘栩锋 committed
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Border Background="{TemplateBinding Background}" CornerRadius="2" >
                        <iconPacks:PackIconMaterial x:Name="icon" Kind="CheckboxBlankOutline" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter TargetName="icon" Property="Kind" Value="CheckboxMarkedOutline"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>