C1SplitButton and themes

Posted by: wknauf on 19 April 2022, 6:27 pm EST

  • Posted 19 April 2022, 6:27 pm EST - Updated 3 October 2022, 1:31 pm EST

    Hi C1,

    just noticed that a C1SplitButton does not look very beautiful with the theme “Office2010Black”: the image bar of the ContextMenuStrip dropdown has still light gray background:

    See attached sample. SplitButtonThemed.zip

    This is probably a limitation of the ContextMenuStrip. But it seems there is a workaround: c# - ContextMenuStrip icon transparency - Stack Overflow =>Set “ContextMenuStrip.RenderMode” to “ToolStripRenderMode.System”. My sample contains another control with a ContextMenuStrip (not shown in the screenshot), and here I can confirm that this workaround works. But I don’t know whether it has other side effects on the C1SplitButton. What do you think about this?

    Best regards


  • Posted 19 April 2022, 11:15 pm EST

    Hi Wolfgang,

    The BackColor of the ImageBar in the C1SplitButton can be customized by creating a custom theme taking the ‘Office2010Black’ as the base theme and using the BackColor property at the path [b]C1Input\C1SplitButton\SubMenu\ImageBar[/b] in the C1ThemeDesigner Theme tree.

    Also, we have sent an enhancement request to the development team for setting the BackColor of the ImageBar to match the BackColor of the Items in the ‘Office2010Black’ theme. We will let you know as soon as we have an update.

    Kind Regards, Kartik

    [Internal Tracking ID: C1WIN-27254]

  • Posted 17 October 2022, 11:41 pm EST - Updated 17 October 2022, 11:47 pm EST

    How do you plan to continue with this issue? As .NET6 does not contain the “Office2010Black” theme, this issue could be a “won’t fix”. But you still provide the old themes for .NET 4.x, and I include them in our .NET6 app ;-). So, a fix would be nice.

    While checking the .NET 6 themes, I noticed another display bug for C1SplitButton:

    In the theme “Material”, the back color rectangle of the dropdown items seems to be calculated based on the length of the text. So, items with shorter text have a white area to the right of the item:

    Same for Office2016Black, but here the problem is only visible in the highlight box:

  • Posted 19 October 2022, 3:49 pm EST

    Hi Wolfgang,

    We have asked the development team for an update on the fix and will let you know the updates as soon as possible.

    Also, we could see the issue you mentioned on our end. We have reported the issue to the development team and will let you know as soon as we have an update.

    [Internal Tracking ID: C1WIN-28429]

    Thanks, and Best Regards,


  • Posted 27 April 2023, 11:44 pm EST

    Hi Wolfgang,

    We asked the development team regarding the “appearance of the ImageBar with themes” issue and they have agreed to enhance the appearance in the upcoming releases. The ETA for the same is the 2023v2 hotfix release.

    Also, the second issue that you reported regarding the “item BackColor calculated based on text length” seems to be fixed in the latest release. We checked with the latest release and the issue is not replicable anymore. Could you please once check on your end too and confirm the same?

    Thanks, and Best Regards,


  • Posted 27 April 2023, 11:56 pm EST

    Thanks, I can confirm that the backcolor of all items now has the same width.

    Best regards


Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels