x:Subclass does not work  
Author Message
Kent Boogaart





PostPosted: Visual Studio WPF Designer, x:Subclass does not work Top

Hi,

I have a user control and want it to subclass a my base class instead of System.Windows.Controls.UserControl. I figured I could use x:Subclass as follows:

<UserControl x:Class="MyClass"
x:Subclass="MyBaseClass"
xmlns= http://www.hide-link.com/
xmlns:x= http://www.hide-link.com/ >

Unfortunately, this does not work. The generated code still subclasses UserControl and (for some reason) the partial modifier is removed in the generated code. Any ideas

Thanks,
Kent Boogaart



Visual Studio 200814  
 
 
Mark Boulter





PostPosted: Visual Studio WPF Designer, x:Subclass does not work Top

This forum is focused on the WPF Designer rather than on WPF runtime issues. The WPF forum http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=119&SiteID=1 is a much better forum for this type of question

thanks

mark