How can I change the View Mode of DocumentViewer
?, I want the page to be full width since the beginning.
If I use documentViewer.FitToWidth()
it does stretch but not completely.
If I use ctrl+2 it stretches completely and thats what I want to achieve programmatically or using xaml if possible.
Thanks
I found the problem.
I used FitToWidth()
too early (right after documentViewer.Docuemnt = document
), I changed it - now I call it after the documentViewer
loaded and it works fine.
I guess it was my fault - I dont understand why it stretches it almost completely when I call it right after I load document but w/e as long as it works.