IXRInkPresenter (Compact 2013)

3/28/2014

This class implements a rectangular surface that displays ink strokes.

Syntax

class IXRInkPresenter : public IXRCanvas

Inheritance Hierarchy

IXRDependencyObject

  IXRUIElement

    IXRFrameworkElement

      IXRPanel

        IXRCanvas

          IXRInkPresenter

Methods

In addition to the methods inherited from IXRCanvas, this class contains the following methods.

Name

Description

IXRInkPresenter::GetStrokes

Retrieves the strokes that the IXRInkPresenter displays.

IXRInkPresenter::SetStrokes

Sets the strokes that the IXRInkPresenter displays.

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

IXRInkPresenter derives from IXRCanvasand can display one or more child IXRUIElement objects and an IXRStrokeCollection.

IXRInkPresenter inherits two properties from IXRPanel that relate to presentation: Background and Children. IXRInkPresenter draws the child UI Elements over the background and the strokes over the children. Therefore, if you want other content to always remain over strokes, you must declare that content in a separate IXRCanvas that overlays the IXRInkPresenter.

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

You can also define an IXRInkPresenter object 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 InkPresenter Class on MSDN.

.NET Framework Equivalent

System.Windows.Controls.InkPresenter

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Ink Input