Using Visual Studio Whidbey to Design Abstract Forms (thank you Brian)
Here are the summarized steps to perform in order to quick-kix the issue:
Here are the summarized steps to perform in order to quick-kix the issue:
- Download Brian's project
- Add the GeneralConcreteClassProvider.cs class to your project
- Add that class in the same namespace than you abstract form, modifying the namespace
- Add the following code to the head of your abstract class:
[TypeDescriptionProvider( typeof(GeneralConcreteClassProvider))]
[ConcreteClass(typeof(GeneralConcreteForm))] - Add the definition and implementation of the GeneralConcreteForm into your abstract form, and implement the abtract ptroperties, methods...
#region Concrete version of AbstractForm for Designer
// Here is a concrete version of AbstractForm that acts as a stand in
internal class GeneralConcreteForm : UIForm
{
public override string AbstractProperty
}
{
get { return null; }
set { ; }
#endregion - All you'll have to maintain, is the GeneralConcreteForm with the future abstract properties and methods.
- That's it
3 comments:
Thank you, this solution is very fast and works perfectly ! :)
Hi there. Sorry that .NET Compact Framework doesn't support the TypeDescriptionProvider class... The solution doesn't work with .NET Compact Fwk projects
Great work.
Post a Comment