Hi i am trying to find some way to when a button is clicked changes the visibility of other control, like a DataGrid with a Trigger in XAML.
The button only changes the visibility of the DataGrid to Visible, it does other things in Code Behind, but this is something that i think that can be done in a Style with a Trigger.
I tried to find a solution and it seems to be possible to do but i can’t understand how.
Thanks in advance.
{x:Reference dataGrid}references a DataGrid with the namedataGrid, alternatively you could just useStoryboard.TargetName. You would normally use theStoryboard.Targetproperty if you do binding or references to resources.