Hi there,
So I was looking at some code regarding the display of XPS documents in XAM,
opening an xps document and setting the source in you DocumentViewer object is easy enough, you just open it and call GetFixedDocumentSequence()
What confuses me is the following - don't understand why they are casting the
They seem to be casing to an interface and I don't understand why... I don't know that it really matters in day to day life however I figured it was worth asking.Code:DocumentPaginator myPaginator = ((IDocumentPaginatorSource)myDocumentViewer).DocumentPaginator;
Of course I can clearly see what is going on when you do something like this
Code:myButton.BackGround = (Brush)this.FindResource("MyBrushResource");
OK - Thanks a lot!




Reply With Quote