RadColorBox in CommandBar

3 posts, 1 answers
  1. Ingo
    Ingo avatar
    15 posts
    Member since:
    Apr 2016

    Posted 13 Apr Link to this post

    Hello,

    I would like to display a RadColorBox inside a RadCommandBar. This would allow the user to select a color and to show him which color is currently selected.

    Is this possible?

    A DateTimePicker can be easily hosted inside the command bar inside a CommandBarHostItem. But I can get it to work with a RadColorBox

    Thank You for Your help

    Regards,

    Ingo

     

  2. Answer
    Dess
    Admin
    Dess avatar
    1601 posts

    Posted 14 Apr Link to this post

    Hello Ingo,

    Thank you for writing.

    You can find below a sample code snippet demonstrating how to add a RadColorBox:
    CommandBarHostItem host = new CommandBarHostItem();
    host.MinSize = new System.Drawing.Size(100, 20);
    RadColorBox colorBox = new RadColorBox();
    host.HostedControl = colorBox;
    this.commandBarStripElement1.Items.Add(host);

    I hope this information helps. Should you have further questions I would be glad to help.

     Regards,
    Dess
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ingo
    Ingo avatar
    15 posts
    Member since:
    Apr 2016

    Posted 14 Apr Link to this post

    Hello,

    Thank You for Your answer!

    This works perfectly!

    Regards

    Ingo

Back to Top