Bug Report T321829
Visible to All Users

In version 15.1.8 the defatul BarItem horizontal alignment differs from previous versions

created 9 years ago (modified 9 years ago)

Hello,
is it possible to specify global meaning of value BarItemContentAlignment.Default. We have problem with toolbutton's appearance in popupmode.

Version DX 15.1.5
http://1drv.ms/1IBNHTV
Ver sion DX 15.1.8
http://1drv.ms/1IBNEHK

When I change the new property ContentHorizontalAlignment to "Near", then the buttons look like in version 15.1.5.
Default value for this property is set to "Default".
Is it possible to make meaning of "Default" same as "Near"

Regards,

Tomas

Comments (2)
Nadezhda (DevExpress Support) 9 years ago

    Hello Tomas,

    We need some time to investigate this behavior. Please bear with us. We will get back to you as soon as possible.

      For clarification, we use Office2003 style.
      lookAndFeel = new DevExpress.LookAndFeel.DefaultLookAndFeel();
      lookAndFeel.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Office2003;
      lookAndFeel.LookAndFeel.UseWindowsXPTheme = true;

      Answers approved by DevExpress Support

      created 9 years ago

      We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

      Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

        created 9 years ago (modified 9 years ago)

        Hello Tomas,
        Currently, the default value is obtained from the BarItem instance and BarManager doesn't provide any global settings to substitute this value.
        As far as I understand, your final goal is to avoid setting this property value for each BarItem manually.
        You can use this code to set the required value for each BarItem:

        C#
        for (int i = 0; i < barManager1.Items.Count; i++) item.ContentHorizontalAlignment = BarItemContentAlignment.Near;

        I hope this information is helpful. Let me know if you have additional questions.

          Show previous comments (3)
          DevExpress Support Team 9 years ago

            It is great that you have found a suitable solution for this issue.
            It seems you wished to share your code with us, but the file you attached is empty. If you reload this file, it will allow us to examine your approach :).

              I'm sorry :-)
              I have attached the sample file one more time. It's only for information. Fortunately, we use base derivered classes of XtraForm and XtraUserControl, so I can implement this feature in these classes.
              I have one remark.
              Very often, when we install new version of DX, the GUI is changed and we have to looking for solution to return the appearance to the original form. Exactly in that case would be suitable a static field/property for initializing the meaning of the default value. It allows backward compatibility and a lot of variability for different users.
              Regards,
              Tomas

              DevExpress Support Team 9 years ago

                Thank you for your remark.
                I've passed the ticket to our developers for further research. We will inform you as soon as we have any results.

                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.