FlowDocument PageHeight not working
-
giovedì 2 agosto 2012 05:16
Hi all,
Download the sample here(RtbPageHeightTest_CS):
https://skydrive.live.com/#cid=EF134C5A42ABFCA3&id=EF134C5A42ABFCA3%21105
In the first RTB Changing Pagewidth of flowdocument does make a difference.
In the second RTB Changing PageHeight of flowdocument does not make any difference.
How Can I make paging illusion in RichTextBox?
Thanks
Regards
Agrawal
Tutte le risposte
-
giovedì 2 agosto 2012 06:58
This link will be helpful:
http://msdn.microsoft.com/en-us/library/system.windows.documents.flowdocument.pageheight.aspx
Sivalingam
-
giovedì 2 agosto 2012 07:19
Hi all,
How Can I make paging illusion in RichTextBox?
Regards
Agrawal
- Unito Annabella LuoModerator venerdì 3 agosto 2012 10:43 same OP, same question
-
venerdì 3 agosto 2012 10:41Moderatore
Hi Agrawal,
You can't see any different after change document.PageHeight is because you didn't add a FLowDocument into your RichTextBox, try below code:
<RichTextBox x:Name="Rtb1" Grid.Row="1" Background="Beige" > <FlowDocument> <Paragraph Background="BlanchedAlmond"> This uses automatic page sizing with minimum page size of 3 by 5 inches, and a maximum page size of 6 by 10 inches. </Paragraph> </FlowDocument> </RichTextBox> <RichTextBox x:Name="Rtb2" Grid.Row="2" Background="Bisque" > <FlowDocument> <Paragraph Background="BlanchedAlmond"> This uses automatic page sizing with minimum page size of 3 by 5 inches, and a maximum page size of 6 by 10 inches. </Paragraph> </FlowDocument> </RichTextBox>
Hope it helps.
Have a nice day.
Annabella Luo[MSFT]
MSDN Community Support | Feedback to us
- Contrassegnato come risposta Annabella LuoModerator lunedì 20 agosto 2012 03:09

