Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to make an editor show NullText even if it has focus

$
0
0

By default NullText disappears when an editor gets focus. To change this behavior, you can create VisualBrush containing the NullText string and apply it to the editor's Background.

Question Comments

Added By: Mehran Balaei at: 1/3/2013 11:25:59 AM    

I have same problem with Winform controls (XtraEditors.TextEdit).
How can I make TextEdit show NullText even if it has focus?

Added By: Krunal Chavda 3 at: 7/25/2015 7:23:45 AM    

If I don't put this style inline i.e. defined inside the control then only this solution works. If I put this style and resource in ResourceDictionary, this solution doesn't work. Wonder why?


Viewing all articles
Browse latest Browse all 7205

Trending Articles