1

I need to recreate this Microsoft Word button in VSTO C#

color button

I have tried all I know, like using menus, galleries and dropdowns but they don't give me the flexibility and functionalities to replicate the same button. Surely there must be a easy way to populate an empty control with all the content of that button in one line of code or something.

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
dsa
  • 11
  • 2

1 Answers1

0

The Fluent UI (aka Ribbon UI) doesn't provide anything for that. There is no color picker control available for the ribbon. The best what you could do is to create a task pane with any .net control (a custom color picker control) or standard ColorDialog class which is available out of the box.

See How to: Add a custom task pane to an application for more information.

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
  • hi thank you for your reply. I am looking to reproduce the button I have attached in the link and nothing more. Is it possible to make it? – dsa May 10 '23 at 10:32
  • Nope. The best what you could do is to use the dropdown or menu control on the ribbon. – Eugene Astafiev May 10 '23 at 11:03