在我的 UI XAML 中,我本质上是从包含多个表单共有的功能的类“BaseView”继承的,但这会阻止设计器显示表单:“无法创建 BaseView 类型的实例”。代码将编译并运行,但无法在 Designer 中看到表单令人沮丧。有没有更好的办法?谢谢。
XAML:
<vw:BaseView
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vw="clr-namespace:ReviewClient"
x:Class="ReviewClient.MainPage"
...