How can I remove the margins around text in a WPF label?
Set padding to 0.
I had the same problem. Upon examining the properties of a label in the properties window, I discovered the default padding of a label is 5. Setting it to 0 did the trick.
Set padding to 0.
I had the same problem. Upon examining the properties of a label in the properties window, I discovered the default padding of a label is 5. Setting it to 0 did the trick.