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

Change menu item backGround color

$
0
0

Hi all

I would like to know how is that WPF suggest change the menuItem control backGround color using triggers ... Because I have the follow XAML code:

<Menu.Triggers><EventTrigger RoutedEvent="MouseEnter"><BeginStoryboard><Storyboard ><ColorAnimation Storyboard.TargetProperty="Background.Color" To="Red" Duration="0:0:0.2" AutoReverse="True"/></Storyboard></BeginStoryboard></EventTrigger></Menu.Triggers>

And send an exception:

Can notresolve allproperty referencesinthe path to the'Background.Color' property.Verify thatapplicable objectssupportthe properties.

Tnks !!!




Viewing all articles
Browse latest Browse all 18858

Trending Articles



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