Ticket Q579394
Visible to All Users

Window Border Color in Windows 8

created 11 years ago

How do I set the border color of my application to the one in the theme? In windows 8, my border color keeps changing to either a very light blue or an orange or some other color. When I run one of the sample apps the border remains the same no matter how many times you run it. How is this possible? When I run the office 2013 theme or the vs 2013 black theme to have the border the same as in the sample as well as how other applications.

Thanks in advance.

Answers approved by DevExpress Support

created 11 years ago (modified 11 years ago)

Hi Brian,
I suggest that you call the DevExpress.Skins.SkinManager.DisableFormSkins method in the Main method before any DevExpress forms are shown. Here is a simple sample that illustrates this approach. Feel free to contact us if you have any further questions. We are always ready to help you.

    Comments (3)

      Thanks for the suggestion, but unfortunately it doesn't work. I have attached some images of the issue.
      border_issue_1 and 2 are from my app at different times today. As you can see one minute it's one color and then all of sudden changes. Image border_issue_3 is the sample app that you sent me against my VS 2013 border.
      Any other suggestions?

        forgot the images

        Alisher (DevExpress Support) 11 years ago

          Hi Brian,
          Do I understand it correctly that you wish to set the same color for the form's border as in the OS "Color and Appearance" scheme? If so, for the XtraForm you can use the approach suggested by Maxim. For the RibbonForm, set its AllowFormGlass property to True.
          I need to note that all form appearance depends on skin elements from the applied skin. With the approaches above the form will show standard borders and the OS will colorize them itself. But if you wish to change the borders without using one of the mentioned approaches, you need to manually redraw images of all skin elements involved into the process of creating form borders. I'm afraid it is difficult to do this and we don't have examples for this.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.