첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170

■ RichTextBox 엘리먼트에서 문단 간격을 줄이는 방법을 보여준다.

 

▶ 예제 코드 (XAML)

<RichTextBox Name="richTextBox">
    <RichTextBox.Resources>
        <Style TargetType="{x:Type Paragraph}">
            <Setter Property="Margin" Value="0" />
        </Style>
    </RichTextBox.Resources>
    <FlowDocument>
        <Paragraph>I am a flow document. Would you like to edit me? <Bold>Go ahead.</Bold></Paragraph>
        <Paragraph Foreground="Blue">I am blue I am blue I am blue.</Paragraph>
    </FlowDocument>
</RichTextBox>
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요