Intersoft ClientUI Documentation
UXDocumentViewer Class
Members 



Represents a document viewer class which accept FixedPage content.
Object Model
UXDocumentViewer ClassFixedDocument ClassISFramework ClassStyleSelector ClassDataTemplateSelector ClassDocumentViewerResource Class
Syntax
Remarks

UXDocumentViewer is a feature-rich user interface control for displaying document in high-fidelity resolution with WYSIWYG layout.

You use UXDocumentViewer to view a document, which you can set through the provided Source property, or specify the document as the content of UXDocumentViewer. The UXDocumentViewer control renders the document in WYSIWYG (What-you-see-is-what-you-get) manner. To achieve pixel-perfect layout rendering, UXDocumentViewer requires the document to be of FixedDocument type.

A FixedDocument contains one or more pages which is defined in the Pages property. Each page is represented by a FixedPage type. Both FixedDocument and FixedPage are part of the ClientUI document framework, which allow developers to create rich document content that can be viewed consistently in both Silverlight and WPF application. For more information about ClientUI document framework, see Document Framework Overview

The following example shows how to define a FixedDocument with two pages and display the document in UXDocumentViewer.

View
Copy Code
<Intersoft:UXDocumentViewer Width="800" Height="600">
    <Intersoft:FixedDocument PageSize="1280,720">
        <Intersoft:PageContent>
            <Intersoft:FixedPage Width="1280" Height="720">
                <Canvas>
                    <TextBlock Text="Page 1 content" FontSize="64"  
                                Canvas.Left="25" Canvas.Top="25"/>
                </Canvas>
            </Intersoft:FixedPage>
        </Intersoft:PageContent>
        <Intersoft:PageContent>
            <Intersoft:FixedPage Width="1280" Height="720">
                <Canvas>
                    <TextBlock Text="Page 2 content" FontSize="64" 
                                Canvas.Left="25" Canvas.Top="25"/>
                </Canvas>
            </Intersoft:FixedPage>
        </Intersoft:PageContent>
    </Intersoft:FixedDocument>
</Intersoft:UXDocumentViewer>

Understanding UXDocumentViewer Elements

UXDocumentViewer facilitates users with the capability to view, search, and navigate a document. To achieve these capabilities, UXDocumentViewer comes with rich user interface elements that consisted of UXVirtualizingListBox, UXSearchBox, UXToolBar and UXStatusBar.

The following figure illustrates the main layout and user interface elements of the UXDocumentViewer control.

UXDocumentViewer Layout and Elements

Although the UXDocumentViewer already provides predefined UI elements to allow rich user interaction, you are free to customize any of the elements to suit your application's preferences – thanks to the loosely-coupled architeture design that made the customization possible. You can customize the styles and appearance of the elements entirely by editing the control template using designer tools such as Expression Blend.

To learn more about UXDocumentViewer, see UXDocumentViewer Overview.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ItemsControl
                  Intersoft.Client.Framework.ISItemsControl
                     Intersoft.Client.UI.DocumentViewers.DocumentViewerBase
                        Intersoft.Client.UI.DocumentViewers.DocumentViewerGenericBase<T>
                           Intersoft.Client.UI.DocumentViewers.UXDocumentViewer

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UXDocumentViewer Members
Intersoft.Client.UI.DocumentViewers Namespace

Concepts

UXDocumentViewer Overview
Document Framework Overview

Send Feedback