Since the 2011 version it is possible to also style the form with the appstyler. I just don't seem to be able to find any proper documentation on how to change certain properties. Does anybody know how to:
Or even better: some documentation on how to do this? (If I search for example for UltraFormCaptionArea I don't really find anything useful that tells me what can be styles with this)
Would be great if someone could point me in the right direction.
Hello,
I will be happy to assist you with your questions.
Below you will find the answers to your questions in order:
To help illustrate my explanation, I have attached two images into this forum.
Please let me know if you have further questions regarding this matter.
Hi Jose,
My question about any useful documentation you did not answer so I guess there is none?
Thanks so far for the help.
- Erik
You are correct in your description.
Also, all of our useful documentation is located in the following link:http://help.infragistics.com/NetAdvantage/WinForms/2011.2/CLR2.0/?page=Win_Application_Styling_Framework_ASF.html
If you find that the documentation for the Appstylist doesn't provide answers to your questions, you always have the option to ask a Developer Support Engineer your questions.
Please let me know if you have any questions regarding this matter.
Our forms are using UltraToolbarManager. When I use AppStylistRunTime to alter UltraFormCaptionArea or UltraFormBorder, nothing happens, no color changes get applied.
Also, I tryed to add UltraFormsManager to my form, but I got a message saying that it cannot be added\used with UltraToolbarManager.
Does this mean that if a form has a UltraToolbarsManager, the form border style\color cannot be changed? Why is this?
If this is the case, it's a big minus from me to Infragistics....
Hi,
You cannot use the UltraFormManager with UltraToolbarsManager because UltraToolbarsManager already does everything UltraFormManager does and a whole lot more. So there's no reason to use both.
In order to style the form, the ToolbarsManager has to take over the drawing of the form's borders and title bar. This will only happen under certain conditions.
First, you need to turn off glass, so set the UltraToolbarsManager.IsGlassSupported to false.
Also, you need to set the FormDisplayStyle to something like RoundedSizeable.
Our forms that use UltraToolbarManager have allready those conditions.
IsGlassSupporter is set to False, and FormDisplayStyle is RoundedSizeable. (these are our standard settings on forms).
Still, I cannot find where to alter the form border in the designer og in properties of the toolbar.
Also, durring runtime, using AppStylistRuntime control, after changeing the UltraFormCaptionArea or UltraFormBorder, nothing happens... (and btw, it indicates that these properties are ONLY used by UltraFormManager)
When changing the "RibbonCaptionArea" background color, it worked. But only the caption area, NOT the border. See picture below .I have also added a test solution so that you can see it for yourself. http://dl.dropbox.com/u/33168380/FormBorders.zip
There is no way to do this in code, only via AppStylist.
To change the border color, use the ToolbarFormBorder UI Role.
Ah! I've been searching for this for more than a year now :)
Thank you! This worked :)