Remove text (#FFFF0000) from BrushEditBox and keep only the square containing the color

Editors for WPF Forum

Posted 7 months ago by Farouk Bouali
Version: 19.1.0685
Avatar

Hello, 

I am using BrushEditBox, and I want to remove the text (#FFFF0000) and keep only the square containing the color.

how can I do that?

I checked if there is a property that does the job, but didn't find anything.

Thank you. 

Best regards.

Comments (6)

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

Hi Farouk,

There is a HasText property you can set to false.  If you take a look at the BrushEditBox QuickStart sample, we show an example of that in its gallery section.


Actipro Software Support

Posted 7 months ago by Farouk Bouali
Avatar

Hello, 

I did not find the HasText property, even in the BrushEditBox QuickStart sample, no HasText property.

I only get HasPopup and HasSwatch.

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

Hello,

It was added in v2019.1 build 685.  Perhaps you are on an older build.

[Modified 7 months ago]


Actipro Software Support

Posted 7 months ago by Farouk Bouali
Avatar

Ah, yes I am using 19.1.683.0 

any other alternative to remove the text?

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

Unfortunately not unless you retemplate the control.  It's far easier to get the newer build.


Actipro Software Support

Posted 7 months ago by Farouk Bouali
Avatar

Thank you.

The latest build of this product (v2020.1.1) 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.