私は WPF/XAML の初心者なので、おそらく非常に明白な質問です。
FlowDocument タイプのプロジェクトに新しいアイテムを追加しました。それを呼びましょうCrappyFlowDocument.xaml
:
<FlowDocument xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
ColumnWidth="400" FontSize="14" FontFamily="Georgia">
<Paragraph>
Woo, my first paragraph!
</Paragraph>
</FlowDocument>
の途中に大きなテキストの塊を入れないようにしたいので、別のファイルに入れましたPrettyInfoWindow
。
今、私の中でPrettyInfoWindow
、私は困惑しています。
<FlowDocumentScrollViewer x:Name="flowDocViewer" Margin="0,0,0,0" Background="#FF414141" Zoom="80" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Disabled" IsSelectionEnabled="False">
<!-- What do I put here-abouts to get my CrappyFlowDocument.xaml to show? -->
</FlowDocumentScrollViewer>
この種の「インクルード」機能についてネット上で何も見つけることができませんが、おそらく私の検索機能はひどいものです。これが FlowDocument.xaml ファイルの本来の目的ではない場合、その目的は何でしょうか?