Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
370
Triggers
posted

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

  • 69686
    Suggested Answer
    posted

    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