How to bind click of a button to change the content of a panel (Grid) using XAML
问题 I am creating a UI of a WPF Application, and while working on the implementation of the software's features, i didn't have much experience with creating the UI. Now I need to a way to change the contents of the Properties panel which has a grid to contain the content. I have created multiple panels, hidden all but one, and now i want to switch when the user clicks on a button in the Ribbon on the top, (or it could be any button somewhere else in the layout). It is very easy to do with code,