I have a WPF application (VB). I initialize a TextBlock item, when I click in a button, the TexBlock content changes from an empty string ("") to a "foo" string.
I would like to get the value (you know, select it and then copy/paste) but I cant.
What kind of property I have to change in the TextBlock item in order to have this feature on ?
Thanks in advance the community !
TextBlock does not support text selection. Use a TextBox. If you want it to appear like a TextBlock then set
BorderThickness="0"
IsReadOnly="True"