■ RichTextBlock 엘리먼트를 사용하는 방법을 보여준다.
▶ 예제 코드 (XAML)
1 2 3 4 5 6 7 8 9 10 11 12 |
<RichTextBlock SelectionHighlightColor="Green"> <Paragraph> RichTextBlock provides a rich text display container that supports <Run FontStyle="Italic" FontWeight="Bold">formatted text</Run>, <Hyperlink NavigateUri="https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.Documents.Hyperlink"> hyperlinks </Hyperlink>, inline images, and other rich content. </Paragraph> <Paragraph>RichTextBlock also supports a built-in overflow model.</Paragraph> </RichTextBlock> |