IXRScrollContentPresenter (Compact 2013)

3/28/2014

This C++ class displays the content inside the control template of an IXRScrollViewer control.

Syntax

class IXRScrollContentPresenter : public IXRContentPresenter

Inheritance Hierarchy

IXRDependencyObject

    IXRUIElement

        IXRFrameworkElement

            IXRControl

                IXRContentPresenter

                    IXRScrollContentPresenter

Methods

Method

Description

IXRScrollContentPresenter::GetCanHorizontallyScroll

Gets a value that indicates whether the contents of an IXRScrollViewer can be scrolled horizontally.

IXRScrollContentPresenter::GetCanVerticallyScroll

Gets a value that indicates whether the contents of an IXRScrollViewer can be scrolled vertically.

IXRScrollContentPresenter::GetExtentHeight

Gets the vertical size of the extent of all of the content (not only the content that is visible in the viewport).

IXRScrollContentPresenter::GetExtentWidth

Gets the horizontal size of the extent of all of the content (not only the content that is visible in the viewport).

IXRScrollContentPresenter::GetHorizontalOffset

Gets the distance the content was scrolled horizontally.

IXRScrollContentPresenter::GetScrollOwner

Gets the IXRScrollViewer element that controls the scrolling behavior.

IXRScrollContentPresenter::GetVerticalOffset

Gets the distance the content was scrolled vertically.

IXRScrollContentPresenter::GetViewportHeight

Gets the vertical size of the viewport that displays the visible portion of the content in the IXRScrollViewer.

IXRScrollContentPresenter::GetViewportWidth

Gets the horizontal size of the viewport that displays the visible portion of the content in the IXRScrollViewer.

IXRScrollContentPresenter::SetCanHorizontallyScroll

Sets a value that indicates whether the contents of an IXRScrollViewer can be scrolled horizontally.

IXRScrollContentPresenter::SetCanVerticallyScroll

Sets a value that indicates whether the contents of an IXRScrollViewer can be scrolled vertically.

IXRScrollContentPresenter::SetScrollOwner

Sets the IXRScrollViewer element that controls the scrolling behavior.

Thread Safety

Members of this class are thread safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

The default control template of an IXRScrollViewer control includes an IXRScrollContentPresenter. If you create a new IXRControlTemplate for an IXRScrollViewer, be sure to include an IXRScrollContentPresenter to display the content of the IXRScrollViewer.

When you create a class instance, use an IXRScrollContentPresenterPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

You can define a scroll viewer element with a custom control template in Microsoft Silverlight 3 XAML. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this element in the source XAML for your application, see the ScrollContentPresenter Class on MSDN.

.NET Framework Equivalent

System.Windows.Controls.ScrollContentPresenter

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for UI Element Management
IXRControlTemplate
IXRScrollViewer