locked
Zoom property on Richtextblock RRS feed

  • Question

  • How can i set the room property of RichTextblock?  Because when i press contrl + mouse scroll  i am able to zoom the contents in richtextblock.  So how do I set the zoom property in C#?
    Tuesday, October 15, 2013 3:37 PM

All replies

  • There is no zoom property on the RichTextBlock. The behavior you are seeing is probably from a container control. Do you have it in a ScrollViewer?

    --Rob

    Tuesday, October 15, 2013 4:33 PM
    Moderator
  • Yea. I meant Scrollviewer. Sorry.
    Tuesday, October 15, 2013 6:13 PM
  • You can set the ZoomFactor in the third argument to ScrollViewer.ChangeView

    Tuesday, October 15, 2013 7:30 PM
    Moderator