![]() ![]() In fact, you could take it a step further. ITheme) and then just use regular databinding to configure them appropriately at runtime when the ITheme is set. then I would build an interface with definitions for the colors/images in your application (e.g. the background of a header panel or heading font color etc. However, to theme elements within your application - e.g. It depends on your intent for the theming as Hans says in his comment, generally using the system's "theme" for controls and window appearance is considered an asset. ![]() What you're trying to do is not very simple in Windows.Forms, and maybe you should look at WPF and other alternatives. Use one of the many control libraries out there, such as DevExpress. ![]() You may want to inherit from the Form class and create your own CustomDrawnForm which you will use across your application. But note that you still won't be able to change how the Title Bar is rendered and other system-specific things, such as how the X and Maximize buttons look.Įxpanding on point 1, you could create your forms as borderless and create your window with custom painting (override OnPaint) and images. This will keep things separated and ready for future changes. The simplest way is to create a Skin XML file of your own, in which you specify your own colors for your Application, you read it via a Class you create as well and you apply the new colors. There are several alternatives at your disposal. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |