Skip to main content

Microsoft Silverlight

Answered Question Problem deriving from UserControlRSS Feed

(0)

pkr2000
pkr2000

Participant

Participant

1219 points

377 Posts

Problem deriving from UserControl

 I've created a base class that derives from User Control and I alter my user control's class accordingly. Everything goes well until the "hidden" part of the partial class is generated as it derives directly from UserControl and therefore the partial class clashes and fails. I then have to go into the hidden file and manually change it to my base class and everything is fine...until I rebuild and have to do the same thing again! Anyone got any ideas for a neat solution to this...aside from just automating a search and replace as a build step?

 

Bill Reiss
Bill Reiss

Contributor

Contributor

4836 points

917 Posts

Silverlight MVP
Answered Question

Re: Problem deriving from UserControl

This is a known issue, hopefully will be fixed, for now, here's a workaround

 http://silverlight.net/forums/t/12448.aspx

 


Bill Reiss, Coauthor of Hello! Silverlight 3
My blog (rss feed)

pkr2000
pkr2000

Participant

Participant

1219 points

377 Posts

Re: Problem deriving from UserControl

Thanks, good to know I wasn't doing anything obviously wrong. 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities