BrushEditBox without the buttons to pick between None, Solid brush, and Gradient brush

Editors for WPF Forum

Posted 7 years ago by KC
Version: 12.2.0573
Avatar

I'd like to use your BrushEditBox control, but our design uses a separate control to choose between none, solid, gradient, and pattern.  Is there a way to use your control with just the spectrum part, RGBA controls, and gradients?

Comments (3)

Answer - Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello, you can create an implicit style for the BrushEditor control and set its AreEditModeButtonsVisible property to false.  I believe that will accomplish what you want.


Actipro Software Support

Posted 7 years ago by KC
Avatar

That will be great for when I configure a solid color brush.  How can I show the BrushEditor control with the gradient controls without having the edit mode buttons visible?  Thanks!

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

You can set the EditMode property to GradientBrush to show the gradient controls.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.