6

有没有办法禁用单个 UserControl 的设计视图 - 而不禁用其他控件的设计视图?

我的某些控件不支持设计视图,在这些情况下,我希望它们只加载 xaml 编辑器。

我可以在代码中放置一些东西来禁用设计视图吗?

4

1 回答 1

2

This question intrigued me. I never use the VS designer anyway. For visual tools I prefer Blend. I only use VS for editing the XAML directly (or code).

If you want to go straight to the XAML editor instead of the designer, here's an option. I don't know of any way to disable the designer only for certain views. I suspect that it is not possible unless you write a VS extension.

于 2011-03-23T19:25:46.653 回答