0

I've written a custom WPF menu control (similar to a tab control, I suppose) using a ListView to hold the headers, which then can be clicked to switch to the appropriate page. The problem with this is, when I'm coding up the XAML for windows that use the control I can't see anything past the first page in the designer view.

Is there a way to let me switch the view within the Visual Studio designer?

4

1 回答 1

0

如果您ViewModel有类似于SelectedTab绑定到自定义菜单控件的SelectedItem依赖属性的属性,那么您可以更改设计时数据(或设计时)以通过适当更改属性ViewModel来选择该选项卡。SelectedTab

于 2013-08-19T04:21:37.833 回答