Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
DocumentViewer Class

Updated: November 2007

Represents a document viewing control that can host paginated FixedDocument content such as an XpsDocument.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/xaml/presentation

Visual Basic (Declaration)
<TemplatePartAttribute(Name := "PART_ContentHost", Type := GetType(ScrollViewer))> _
<TemplatePartAttribute(Name := "PART_FindToolBarHost", Type := GetType(ContentControl))> _
Public Class DocumentViewer _
    Inherits DocumentViewerBase
Visual Basic (Usage)
Dim instance As DocumentViewer
C#
[TemplatePartAttribute(Name = "PART_ContentHost", Type = typeof(ScrollViewer))]
[TemplatePartAttribute(Name = "PART_FindToolBarHost", Type = typeof(ContentControl))]
public class DocumentViewer : DocumentViewerBase
Visual C++
[TemplatePartAttribute(Name = L"PART_ContentHost", Type = typeof(ScrollViewer))]
[TemplatePartAttribute(Name = L"PART_FindToolBarHost", Type = typeof(ContentControl))]
public ref class DocumentViewer : public DocumentViewerBase
J#
/** @attribute TemplatePartAttribute(Name = "PART_ContentHost", Type = ScrollViewer) */
/** @attribute TemplatePartAttribute(Name = "PART_FindToolBarHost", Type = ContentControl) */
public class DocumentViewer extends DocumentViewerBase
JScript
public class DocumentViewer extends DocumentViewerBase
XAML Object Element Usage
<DocumentViewer>
  Document
</DocumentViewer>
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows Vista

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker