WPF Designer “Could not create an instance of type”

后端 未结 11 1238
悲&欢浪女
悲&欢浪女 2020-12-20 11:45

In my UI XAML I\'m essentially inheriting from a class \"BaseView\" that contains functionality common to several forms, however this is preventing the designer from display

11条回答
  •  Happy的楠姐
    2020-12-20 12:17

    And another possible situation (this is actual for at least SL for WP):

    If you create instanse of your class (ex. ) then it should be public. If your class is internal, it will work at design-time but will fail with this exception at runtime.

提交回复
热议问题