Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Window x:Class="MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:sys="clr-namespace:System;assembly=mscorlib"
- xmlns:l="clr-namespace:PreservingIndentationDemo"
- Title="MainWindow"
- Height="350"
- Width="525">
- <Window.Resources>
- <sys:String x:Key="longString"
- xml:space="preserve">	this is really long and wrapped
- 		another line this is also really long and wrapped
- 	one more line this is also really long and wrapped
- another line this is also really long and wrapped
- 		another line this is also really long and wrapped
- </sys:String>
- </Window.Resources>
- <Grid>
- <FlowDocumentScrollViewer l:IndentationProvider.Text="{StaticResource longString}" />
- <!--<RichTextBox l:TextToParaHelper.Text="{StaticResource longString}" IsReadOnly="True"/>-->
- <!--<FlowDocumentReader l:TextToParaHelper.Text="{StaticResource longString}" />-->
- <!--<FlowDocument l:TextToParaHelper.Text="{StaticResource longString}" />-->
- </Grid>
- </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement