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

Editors for WPF Forum

Posted 6 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 6 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 6 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 6 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 (v2018.1 build 0675) was released 15 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.