c# - XAML designed fails to load as cannot create a custom object -


I have an XAML form to use in my application, and I created the frames section to create my own sub The class is created, and it is edited to specify its own class for the interface content (as I have to use properties on the content for data binding).

The problem comes when in the designer it is said that the compiler says that it can not be an example of my control - I have tried to design some designer checks on a humiliating property bit, but He could not even work.

How can I get control to display? Works fine on runtime ...

XAML:

  grid grid. Line = "1" grid. Column = "1" grid. Column = "2" & gt; & Lt; View: PageFrame name = "Content_MainPage" frame. NavigationWizibility = "hidden" /> & Lt; / Grid & gt;  

CS:

  get new public content {content (if (DesignerProperties.GetIsInDesignMode (this)) Return {new baseview};} Other { Return (baseview) base.content;}} set {if (DesignerProperties.GetIsInDesignMode (this)) {base.Content = new BaseView (); FrameTitle = "Design Mode";} Other {base.Content = value; FrameTitle = value .title;}}}}  

Similar problems when I create my panel class Has arrived. / P>

Is your pageframe class defined in the same assembly as your X I live in ML?

I found the only way on which I could work on it, a new meeting of my "pageframe" class. From memory, I think that before the assembly Had to be created so that a file could be referred to the assembly through reference (as opposed to a project reference).

I hate this solution, so I hope you have a cleaner Have you got it :)

S 2008 SP1 is installed? I hope MS will fix this bug. I have not tried to delete my work ...


Comments