0
I have a wrap panel that contains several dockpanels, and I need each dockpanel to change its background by hovering over it. I don’t think creating a Rigger for every element would be appropriate. My shampoo is like this:
<StackPanel>
<WrapPanel>
<DockPanel> <!-- Aqui eu tenho muitos DockPanels -->
</DockPanel>
</WrapPanel
</StackPanel>
What I got was to get all the child elements using:
Children.OfType<DockPanel>().Any();
But I can’t define which object the mouse is on to change it
Got some result ?
– Marcos Brinner