UcSingleGageStyle.xaml 1.99 KB
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
        <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Converter/Dictionary_MyConv.xaml"/>
        <ResourceDictionary Source="pack://application:,,,/MultiLayout;component/Themes/GraphTab.xaml"/>
    </ResourceDictionary.MergedDictionaries>
    <Style TargetType="Button" x:Key="ButtonStyle_option" BasedOn="{StaticResource ButtonStyle_empty}">
        <Setter Property="Margin" Value="5"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Bottom"/>
        <Setter Property="Content">
            <Setter.Value>
                <StackPanel Margin="5" RenderTransformOrigin="0.25,0.5">
                    <StackPanel.RenderTransform>
                        <TransformGroup>
                            <RotateTransform Angle="-90"/>
                        </TransformGroup>
                    </StackPanel.RenderTransform>
                    <TextBlock Margin="2" Text="枫莱尔" FontSize="18" FontWeight="Bold" />
                    <TextBlock Margin="2" Text="FLY Automation" FontSize="9" />
                </StackPanel>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsLogoHidden}" Value="True">
                <Setter Property="Content">
                    <Setter.Value>
                        <Path Data="{StaticResource Geometry_view-quilt}" Height="36" Width="36" Stretch="Fill" Fill="White" SnapsToDevicePixels="True"/>
                    </Setter.Value>
                </Setter>
            </DataTrigger>
        </Style.Triggers>
    </Style>
</ResourceDictionary>