Stefán Höskuldsson
08.02.2012
1 Solution
Hi Stefan,
Thank you for contacting us.
I suggest you take a look at the GroupControl control. This control is a PanelControl descendant and allows you to display a frame around controls with or without a caption.
We look forward to your feedback once you’ve had the opportunity to try this solution.
-
But that one does not have this "gradient" top as the WaitForm has.
-
Hi Stefan,
If I understand you correctly, you wish to display the Panel (GroupControl) instance with the same background as the WaitForm instance in the skinned application.
In this case, define the Panel control properties in the following manner:
panelControl1.LookAndFeel.UseDefaultLookAndFeel = false;
panelControl1.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat;
Skin skin = DevExpress.Skins.CommonSkins.GetSkin(DevExpress.LookAndFeel.UserLookAndFeel.Default);
panelControl1.Appearance.BackColor = Color.White;
panelControl1.Appearance.BackColor2 = skin.Colors["Control"];
panelControl1.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
If this solution does not meet your requirements, would you please illustrate them with some sample.
-
Perfect ! Thanks!!
-
You are welcome!
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.