Silverlight 2.0 Usercontrol base class defined also in generated hidden partial class - by Andrea Boschin [MVP]

Status : 

  By Design<br /><br />
		The product team believes this item works according to its intended design.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 342524 Comments
Status Closed Workarounds
Type Suggestion Repros 0
Opened 5/7/2008 2:53:11 PM
Access Restriction Public


I've found that the base class "UserControl" is declared in both the codebehind file and in the generated partial class. This behavior does not permit to inherit user controls from a custom base class deriving from usercontrol itself. Here is an example of the code I would like to write:

public class ProductPage : SceneUserControl

public class SceneUserControl : UserControl

Other platforms like ASP.NET grant the capability of inheriting Pages or UserControl from a common base class implmenting common behaviors.
Sign in to post a comment.