Animated button in WPF
-
Hello everyone :) I have following code as you can see in next post(I need to turn off HTML tags to paste XAML :sigh: ) With looks like this picture[^] So the question is why where I put mouse cursor over the button it changes to normal winform apperance. When I move it out it's working again :omg: Thanks for the replay
-
Hello everyone :) I have following code as you can see in next post(I need to turn off HTML tags to paste XAML :sigh: ) With looks like this picture[^] So the question is why where I put mouse cursor over the button it changes to normal winform apperance. When I move it out it's working again :omg: Thanks for the replay
Here is the code
Abscdef
-
Here is the code
Abscdef
Hi, This behaviour is being caused by the default behaviour of the button ContentTemplate. You will need to define a new ContentTemplate for your button by using a ResourceDictionary and build the required elements as part of the new template. From the new template definition you will also be able to specify any mouse or keyboard related events that require animation. See below for further information: http://msdn2.microsoft.com/en-us/library/ms771597.aspx Hope this helps...
Clean code is the key to happiness.
-
Hi, This behaviour is being caused by the default behaviour of the button ContentTemplate. You will need to define a new ContentTemplate for your button by using a ResourceDictionary and build the required elements as part of the new template. From the new template definition you will also be able to specify any mouse or keyboard related events that require animation. See below for further information: http://msdn2.microsoft.com/en-us/library/ms771597.aspx Hope this helps...
Clean code is the key to happiness.
Thanks I'll look at this :)