One more themes designer question

Posted by: mike on 1 September 2019, 5:04 pm EST

    • Post Options:
    • Link

    Posted 1 September 2019, 5:04 pm EST

    There is a ribbon Group button background in the Theme Designer (even though it is misplaced under C1Ribbon\Groups\GroupButton\BoxBackground)

    But I can’t find the setting for the arrow color that appears in that box in an un-themed Ribbon - and no matter what I set the background to, the arrow doesn’t show. Is it in glyphs somewhere and not set? Please check.

  • Posted 1 September 2019, 5:13 pm EST

    Btw, when I say misplaced, I mean it is misplaced under the Pressed category in the editor, not in the C1Ribbon\Groups\GroupButton\BoxBackground hierarchy.

  • Posted 2 September 2019, 9:02 am EST

    … can’t edit the post, so I have to add one more question. The FlexGrid’s calendar editor - are its colors theme-able?

  • Posted 2 September 2019, 9:57 pm EST

    Hello,

    1 : You can set the color of the launcher button i.e. the arrow that you are talking about by setting the DialogLauncher properties for RibbonGroups. You can find the setting in the ThemeDesigner app on the following path :

    C1Ribbon\Groups\DialogLauncher

    2 : Sorry, FlexGrid’s calendar editor is not theme-able. As a workaround you can take C1DateEdit as editor and set theme for C1DateEdit’s Calendar. You can find the setting to theme C1DateEdit’s calendar on the following path :

    C1Input\C1DateEdit\Calendar



    If you need any other help, please let us know.

    Regards,

    Prabhat Sharma.

  • Posted 3 September 2019, 1:56 am EST

    About the launcher button - that’s not the arrow I meant. See the arrow inside the box here:

    See https://ibb.co/nrbTWRn

    Thanks

    One more quibble… Windows has a System.Windows.Forms.DateTimePicker that allows you to edit both time and date at same time. You don’t have a C1 equivalent. And the Windows’ one is not skinnable, so in my black theme it just stands out white.

  • Posted 3 September 2019, 2:12 am EST

    Ok after experimenting - you can change that arrow image by setting the Image property of the ribbon group. Weird that when ran under visual styles that image by default is set to an arrow but when themed it is just empty. But I can set it manually so it’s all good.

    The question about DateTimePicker remains :slight_smile:

  • Posted 3 September 2019, 7:11 pm EST

    Hello,

    Equivalent of DateTimePicker is C1 is C1DateEdit.

    You can edit date and time both at the same time by setting its CustomFormat property as desired.

    Code snippet is given below :

    c1DateEdit1.DisplayFormat.CustomFormat = "MM/dd/yyyy hh:mm:ss tt";
    c1DateEdit1.DisplayFormat.FormatType = C1.Win.C1Input.FormatTypeEnum.CustomFormat;
    

    I have attached a sample which have C1DateEdit and DateTimePicker on the form where a dark theme is applied on C1DateEdit.

    Regards,

    Prabhat Sharma.

    C1DateEditThemeDemo.zip

Need extra support?

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

Learn More

Forum Channels