I want to be able to “change” my listview into another control. I was thinking having the control’s visibility set to hidden and when a button is clicked, change the visibility. Do I have to do this programatically? Or can I use a trigger?
Share
You can use a trigger to change the Template property of a ContentControl, which will wrap the control you want to be “changeable”. Check this:
Add this to Resources:
Test it using another ContentControl:
I’m sure it could be optimized, but should put you on the track.