- Back to Home »
- Windows store apps C#/XAML »
- how to wrap windows store app xaml button content or text
Posted by :
Sudhir Chekuri
Wednesday, 18 June 2014
There is no wrapping property available for button content so if you want to have wrapping content inside button use textblock control inside button control. Then apply wrapping for textblock text as shown in the below xaml code.
XAML Code to wrap content inside a xaml button control used for wpf and windows store apps
<Button Height="190" Width="296">
<TextBlock TextWrapping="Wrap" TextAlignment="Center">Content to be wrapped inside button goes here</TextBlock>
</Button>