如何在按钮单击时更改用户控件
问题描述:
我有一个主窗口。我有4个按钮。我还有4个用户控件。我想要做的是当我选择按钮1时,我希望用户控件1显示在主窗口中,当我按下按钮2用户控制2应该显示在主窗口等等..
任何人都请帮助我。
I have a main window.In that i have 4 buttons.I also have 4 user controls.What i want to do is that when i select button 1 ,i want user control 1 to be displayed in main window and when i press button 2 user control 2 should be displayed on main window and so on..
Anyone Please help me.
答
如何显示用户控制按钮 - 单击在-wpf [ ^ ]
查看此..希望它会有所帮助..
how-to-show-user-control-on-button-click-in-wpf[^]
Check this..hope it will help..