Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Office 2007 theme on the Messagebox control
posted

Hello Infragistics support,

So I hooked up the Ultramessagbox and found that the buttons are the standard xp buttons. I wanted to apply the Office 2007 theme.

I'm largely wanting to avoid the question of the stylist application and so tried the following:

UltraMessageBoxInfo info = new UltraMessageBoxInfo();

info.ButtonAppearance.BackColor = Office2007ColorTable.Colors.ButtonBackColor;

etc.........

Unfortunately this didn't work.

I'm using the stylist for a single element (<style role="ListViewColumnHeader">) so I thought I would be able to easily edit it to incorporate this. Unfortunately my efforts were unsuccesful I imported the 2 available resources for normal and hot- tracking from the supplied isl files but the buttons would not update. I have attached the file and would appreciate any pointers there.

I just want to set the Office 2007 theme on the messagebox buttons, can you tell me what I need to do to get the messagebox to open with the equivalent of a ViewStyle = Office2007?

As a aside, I would encourage you to seriously consider providing straight forward themes that can be assigned using properties. I have found this appstyle thing to be largely unsatisfactory and a serious  time sink.

DevExpress provides skins for their controls, I pick the one I want and I'm done. All color variations are covered. That way I can get on with the work at hand. With your stuff, there seems to be no way to theme a basic button so it is consistent for active/hover and pressed etc. I have to go to stylist and work out border colours for when a button is in hover or pressed state. I thought you guys had that all figured out? Just let me know which switch I need to flick.

I'd just like to get stuff done not fiddle with colour schemes.

 

Thanks

 

Here's my isl file

 

<?xml version="1.0" encoding="utf-8"?>

<styleLibrary>

  <annotation>

    <lastModified>2010-08-06T22:59:26</lastModified>

  </annotation>

  <styleSets defaultStyleSet="ListViewHeader">

    <styleSet name="ListViewHeader">

      <styles>

        <style role="ListViewColumnHeader">

          <states>

            <state name="Normal">

              <resources>

                <name>GridColumnHeader_Normal</name>

              </resources>

            </state>

          </states>

        </style>        

      </styles>

    </styleSet>

  </styleSets>

  <resources>    

    <resource name="GridColumnHeader_Normal" backColor="244, 247, 250" foreColor="64, 94, 131" borderColor="191, 197, 210" imageBackgroundStyle="Stretched" backColor2="211, 220, 233" backGradientStyle="Vertical" imageBackgroundStretchMargins="2, 2, 2, 2" />

  </resources>

</styleLibrary>

 

 

Parents
No Data
Reply Children
No Data