Creating DevExpress’ XtraForm derived form as partial class

Developer Express offers an XtraForm (a windows form derived from Form class) with Look & Feel default set so you don’t have to use LookAndFeel objects to centralize its appearance. One annoying feature is that when you create an XtraForm derived class using Add/New Item… in VS.NET 2005 beta 2 it will create traditional Form class structure: one file and no partial classes as Form does.


If you want partial class (possible only in Visual Studio.NET 2005) and XtraForm the solution is rather simple: Create a standard windows Form instead, go to its code and change the base class to XtraForm. Voila. The same is true for XtraUserControl.

Leave a Reply