Advertisement
Guest User

Untitled

a guest
Aug 28th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. <Window x:Class="MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  5. xmlns:l="clr-namespace:PreservingIndentationDemo"
  6. Title="MainWindow"
  7. Height="350"
  8. Width="525">
  9. <Window.Resources>
  10. <sys:String x:Key="longString"
  11. xml:space="preserve">&#x09;this is really long and wrapped
  12.  
  13. &#x09;&#x09;another line this is also really long and wrapped
  14.  
  15. &#x09;one more line this is also really long and wrapped
  16.  
  17. another line this is also really long and wrapped
  18.  
  19. &#x09;&#x09;another line this is also really long and wrapped
  20. </sys:String>
  21. </Window.Resources>
  22. <Grid>
  23. <FlowDocumentScrollViewer l:IndentationProvider.Text="{StaticResource longString}" />
  24. <!--<RichTextBox l:TextToParaHelper.Text="{StaticResource longString}" IsReadOnly="True"/>-->
  25. <!--<FlowDocumentReader l:TextToParaHelper.Text="{StaticResource longString}" />-->
  26. <!--<FlowDocument l:TextToParaHelper.Text="{StaticResource longString}" />-->
  27. </Grid>
  28. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement