C#/C# WPF

xaml next line

doublerabbits 2022. 7. 15. 23:34

1. Xaml Attributes




<StackPanel>
    <Button Content="Line 1&#x0a;Line 2&#x0a;Line 3" FontWeight="Bold" Height="80"/>
</StackPanel>

 

 

2. Xaml Element

<StackPanel>
    <Button xml:space="preserve" FontWeight="Bold" Height="80">
    Line 1
    Line 2
    Line 3
    </Button>
</StackPanel>