Share via


InkAnalyzer.SynchronizingObject Property

Gets or sets the object that designates the thread upon which InkAnalyzer background analysis events are raised.

Namespace:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.dll)

Syntax

'Declaration
Public Property SynchronizingObject As Dispatcher
'Usage
Dim instance As InkAnalyzer 
Dim value As Dispatcher 

value = instance.SynchronizingObject

instance.SynchronizingObject = value
public Dispatcher SynchronizingObject { get; set; }
public:
property Dispatcher^ SynchronizingObject {
    Dispatcher^ get ();
    void set (Dispatcher^ value);
}
public function get SynchronizingObject () : Dispatcher 
public function set SynchronizingObject (value : Dispatcher)

Property Value

Type: System.Windows.Threading.Dispatcher
The object that designates the thread upon which InkAnalyzer background analysis events are raised. The default value is nulla null reference (Nothing in Visual Basic).

Remarks

When the BackgroundAnalyze method is called, the InkAnalyzer performs ink analysis on a background thread. The InkAnalyzer raises events generated by the ink analysis on the very same thread that was used to create the SynchronizingObject. If the InkAnalyzer.SynchronizingObject property is nulla null reference (Nothing in Visual Basic), the InkAnalyzer also raises these events on a background thread.

Examples

This example creates an InkAnalyzer (theInkAnalyzer), and then sets SynchronizingObject to the owning object's Dispatcher property.

' Create the InkAnalyzer. 
Me.theInkAnalyzer = New InkAnalyzer()
Me.theInkAnalyzer.SynchronizingObject = Me.Dispatcher
// Create the InkAnalyzer. 
this.theInkAnalyzer = new InkAnalyzer();
this.theInkAnalyzer.SynchronizingObject = this.Dispatcher;

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkAnalyzer Class

InkAnalyzer Members

System.Windows.Ink Namespace

InkAnalyzerBaseBackgroundAnalyze