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
Methods
Method |
Description |
---|---|
Gets a value that indicates whether the contents of an IXRScrollViewer can be scrolled horizontally. |
|
Gets a value that indicates whether the contents of an IXRScrollViewer can be scrolled vertically. |
|
Gets the vertical size of the extent of all of the content (not only the content that is visible in the viewport). |
|
Gets the horizontal size of the extent of all of the content (not only the content that is visible in the viewport). |
|
Gets the distance the content was scrolled horizontally. |
|
Gets the IXRScrollViewer element that controls the scrolling behavior. |
|
Gets the distance the content was scrolled vertically. |
|
Gets the vertical size of the viewport that displays the visible portion of the content in the IXRScrollViewer. |
|
Gets the horizontal size of the viewport that displays the visible portion of the content in the IXRScrollViewer. |
|
Sets a value that indicates whether the contents of an IXRScrollViewer can be scrolled horizontally. |
|
Sets a value that indicates whether the contents of an IXRScrollViewer can be scrolled vertically. |
|
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