We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Form Theming: deciding between Office2010Form and MetroForm at runtime


I'd like to be able to have a theme setting in my app where the user can choose a theme (Office2010Form, MetroForm) and a theme color(Blue, Black, Gray, etc).

The problem is that Office2010Form and MetroForm are separate classes and as such I would have to duplicate business logic in two types of forms for every form in my app to achieve this.

For this situation, it would be ideal if there was just simply a class called 'SyncFusionForm' which had a property that we could set to either Office2010Form or MetroForm etc...; but this does not exist.

Is there some type of workaround that I could use to achieve this effect of setting the form type at runtime based on a user setting? Perhaps something simulating multiple inheritance with interfaces, or some type of late binding on a base class that both Office2010Form and MetroForm derive from?

Thanks in Advance! 

1 Reply

SK Senthil Kumaran Rajan Syncfusion Team March 16, 2015 12:09 PM UTC

Hi Taylour,


Thank you for using Syncfusion products.


We would like to let you know that MetroForm and Office2010Form are different type of customizable Form controls. Hence both cannot be used as parent of same, at a time.


Please let us know if you need further assistance on this.




Live Chat Icon For mobile
Up arrow icon