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
115
Different DropDownButtons Ultracombo and Default .Net Combo
posted

I want to have the same style on both DropDownButtons, is that possible todo this?

Here a sample how it Looks in our program:

  • 69832
    Offline posted

    By default, the control's dropdown button glyph (the downward-pointing arrow) looks the same as the one drawn by the operating system, which implies that you have either set some appearance properties or applied AppStyling without realizing it.

    Just to see how you may have gotten it to look the way it does in your screenshot, I tried the following property settings:

    this.uce.UseOsThemes = Infragistics.Win.DefaultableBoolean.False;

    this.uce.UseFlatMode = Infragistics.Win.DefaultableBoolean.True;

    this.uce.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;

    this.uce.ButtonAppearance.BackColor = System.Drawing.Color.Transparent;

    this.uce.ButtonAppearance.BorderColor = System.Drawing.Color.Transparent;

    The gotcha here is that the dropdown button glyph is drawn by the operating system, but the Windows theme renderer (at least on Windows 8.1) evidently draws a background and border for the dropdown button. So without customized drawing code, it looks like it is not possible to get the UltraComboEditor to look exactly like the .NET ComboBox.