WPF Change the display of labels based on changes in the contents of the associated text field

I have an associated text box and I need to change the display shortcut associated with it so that it is highlighted in bold for any content. I do not want to use javascript, if at all possible.

thank

+3
source share
1 answer

Why is javascript needed?

In any case, if it is really wpf, bind the FontWeight property of your shortcut to the textbox text property using its own converter, which converts null / empty lines to Normal font weight and non-empty / non-empty to Bold.

+4
source

Source: https://habr.com/ru/post/1764555/


All Articles