본문 바로가기
C#/C# WPF

xaml next line

by doublerabbits 2022. 7. 15.

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>

'C# > C# WPF' 카테고리의 다른 글

WPF TextBox  (0) 2022.07.16
Constant for Xaml  (0) 2022.07.16
다른 프로젝트 리소스 이용  (0) 2022.07.15
Title Bar 없이 Mouse Drag 로 이동  (0) 2022.07.15
Title Bar 숨기기  (0) 2022.07.15