< 입력란 만들기 >
1 2 | Header="Notes" // textbox 위에 위치할 제목 PlaceholderText = "Type your notes here" | cs |
=> xaml에 작성할 때
1 | <TextBox Width="500" Header="Notes" PlaceholderText="Type your notes here"/> | cs |
=> C++로 작성할 때
1 2 3 4 | TextBox^ textbox = ref new TextBox(); textbox->Width = 500; textbox->Header = "Notes"; textbox->PlaceholderText = "Type your notes here"; | cs |
< 입력 줄바꿈 관련 >
1 2 3 | AcceptReturn = "true" // 입력란에서 줄바꿈 or 리턴문자 허용 TextWrapping = "Wrap" // width에 맞게 자동 줄바꿈 ScrollViewer.VerticalScrollBarVisibility = "Auto" // 세로 스크롤 막대를 표시 | cs |
참고 https://msdn.microsoft.com/ko-kr/windows/uwp/controls-and-patterns/text-box
'Computer > uwp' 카테고리의 다른 글
[UWP] Appbar icon 크기 키우기 (0) | 2017.01.23 |
---|---|
[윈도우 10 디자인] UWP 앱 디자인 종류 (0) | 2016.12.14 |