Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF: How to reset Window.Resource setting to normal?

$
0
0

Previously I had run a WPF program that will change button colour through animation from original colour to light blue whenever mouse over the button.

Although I had stopped running that program,  button still change colour as usual for any new VB.net or WPF program I created. 

How to cancel button changing colour effect?

Although I set background of button to change to lightgray whenever mouse is over the button, the button still change to light blue.

<Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Width" Value="1050"/>
                <Setter Property="Height" Value="40"/>
                <Setter Property="FontSize" Value="16"/>
                <Setter Property="FontWeight" Value="Bold"/>
                <Setter Property="Background" Value="LightGray"/>
                <!--Setter Property="Foreground" Value="LightGray"/-->
                    <Setter Property="BorderBrush" Value="black"/>
                        <Setter Property="Opacity" Value="10"/>
                </Trigger>


Jason


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>