Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

RichTextBoxを使用する

アプリ実行


ソースコード

App.xaml
<Application x:Class="WpfApplication2.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml">
</Application>
MainWindow.xaml
<Window x:Class="WpfApplication2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="800">
        <RichTextBox>
            <FlowDocument FontSize="20">
                <Paragraph>Hello Workd</Paragraph>
            </FlowDocument>
        </RichTextBox>
</Window>