c# - How to limit the text appearing inside a label content -


i'm trying limit text length inside label (the 'content') in way able enter text , after reaching limit text still typing shown text allowed length, if want see whole text i'll need locate mouse right above label see of written text inside tool tip.

the solution find "maxwidth" property.

thanks lot!

typically limit amount of text available size, not length. size depends on layout.

i'd use textblock display text entered textbox instead of label:

<textblock text="{binding text, elementname=sometextbox}"            tooltip="{binding text, elementname=sometextbox}"            textwrapping="wrap"            texttrimming="characterellipsis" /> 


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -