Hi,
I am working on WPF application. I want to know is there a way to fit the long text on my button ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shweta LodhaPosted Feb 27, 2014, 3:43 PM
Give a try to wrap text and set it to Button.Content.
Abhijit PatilPosted Feb 27, 2014, 11:08 PM
you can use TextWrapping property of textblock
for XAML:
use as per the Shweta mam says
and for C#
MyTextBox.TextWrapping=TextWrapping.Wrap;
Hope it help for u
Regards,
Abhijit Patil.
http://dotnetbyabhipatil.blogspot.in