Although is seems to be _one_ question, as far as I experienced it involves many solvable issue to have this simple generic functionality.
I've carefully reviewed many theme switch in the sample apps, and the main sample application, but neither use generic method for this, some of the includes special custom (specific to that app) styles, and switches between these application specific styles, which is definitely not the same as switching pre-prepared (and Infragistics shipped) themes.
Q1: I would like offer all the Infragistcs themes as a choice for the user. I've carefully reviewed the sample applications, however did not find an exact and preferred way a) what can I include (reference) in my application to made available, b) What is the programmatic way to get all available themes? It is also not clear to me if I had to refer theme definition assemblies to achieve this (then what and where are these assemblies) _or_ I have to include style definition as xaml source into my application (then where are these sources). It is also not clear, if do I have to do this control by control and by theme by theme (this means themecount * controlcount items)
Q2: As I read there is no support for theming standard xaml elements, like Button, StackPanel, DockPanel etc. However theming these controls are inevitable. Please think about properties like Background color of the panels. How can I solve the theme switch then? Do I have to my own styles for all those controls, for all themes, then switch between them? This means creating a theme system from ground zero for those controls.
Q3: I am using igWindows:XamTabControl in my ribbon window. Unfortunately I can not find out how to theme XamTabControl. Its look always the same
Q4: I am using standard dialogs like messagebox to show questions, and messages to the user. These dialogs are not themed at all. I understand why is this, however I did not expect to rewrite these standard UI elements reusable since the advent of the WPF just because I would like consistent (and themeble) look and feel in my application. Again I understand why this is not themeble, but this case I expected these functionality to reimplemented in a themed way in the Infragistics WPF framework instead of rewriting it, by every developer in every project (or live with the not themed one) Missed I something?
Yes I know it was 4 questions not one. However to accomplish the _one_ question in the subject all applies. In case you prefer it to separate them to individual forum threads, please let me know and I will do it.
Thanks in advance
Thank you for your post. I have been looking into it and I can say that in NetAdvantage 14.2 there will be a ThemeManager, where you will be able to set the theme for the entire application and determine whether to apply the theme to MS controls or only IG controls. My suggest ion is to wait until the end of the month when the new version should be available for download and try our theme manger.
I've read this thread and seen that I already have the 14.2 now, I've gone and taken a look to the theme manager, but the samples are not showing much, and here there are no replies to the questions made, so I made them again:
1) What do I have to do to include one or all of your themes in my application
2) How can I programmatically set a theme at the startup or make a user choose the theme
In the samples you refer to a folder inside the project containing the themes, so I'm not able to understand if you have made a Theme Library to reference in my project or if I need to copy your themes in my applications and compile them.
Thank you in advance
Here you can find more information about the Theme Manager: