Hi, I have some panels stacked in a page. My goal is to set the visibilty of this panels on click of buttons which are inside the panels again. Using triggers how would i be able to obtain the same?
Thanks in advance
Hello,
If you are using toggle buttons, you can bind with DataTrigger the Visibility property of the panel to the IsChecked property of the Toggle Button and use ElementName property of the Binding expression - set it to the name of the button. If you are using the click event, you have use EventTrigger and StoryBoard, which also has TargetName property that you can set - this time the panel's name.
Hope this helps