C#/WPF

[WPF] MouseOver, ScaleStyle

딸기우유중독 2025. 5. 15. 09:30

 

 

ViewResourceDictionary.xaml
0.01MB

 

 

    <Style x:Key="scaleStyle" TargetType="Border">
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="RenderTransform">
                    <Setter.Value>
                        <ScaleTransform ScaleX="0.99" ScaleY="1.01"/>
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>

 

 

   <Border Style="{StaticResource scaleStyle}" Background="#1F0B0A15" Margin="5,0,5,0" ClipToBounds="True">

 

 

 


 

 

https://github.com/DevExpress-Examples/wpf-create-a-fluent-design-using-appearance-options/blob/804cf8afca6e0ea703cfb3e927d45af47ccc664a/CS/FluentDesignTemplate/ViewResourceDictionary.xaml

 

wpf-create-a-fluent-design-using-appearance-options/CS/FluentDesignTemplate/ViewResourceDictionary.xaml at 804cf8afca6e0ea703cfb

This example creates a view styled according to Fluent Design with DevExpress components - DevExpress-Examples/wpf-create-a-fluent-design-using-appearance-options

github.com

 

 

728x90