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)
XML Namespace:  https://schemas.microsoft.com/winfx/2006/xaml/presentation

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);
}
/** @property */
public Dispatcher get_SynchronizingObject ()

/** @property */
public void set_SynchronizingObject (Dispatcher value)
public function get SynchronizingObject () : Dispatcher

public function set SynchronizingObject (value : Dispatcher)
Not applicable.

Property Value

The object that designates the thread upon which InkAnalyzer background analysis events are raised. The default value is a null reference (Nothing in Visual Basic).

Remarks

When the BackgroundAnalyze method is called, the InkAnalyzer performs the ink analysis on a background thread. The InkAnalyzer raises events generated by the background analysis on the thread upon which the SynchronizingObject was created. If this property is a null reference (Nothing in Visual Basic), the InkAnalyzer raises these events on the background thread.

Example

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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkAnalyzer Class
InkAnalyzer Members
System.Windows.Ink Namespace
System.Windows.Ink.InkAnalyzerBase.BackgroundAnalyze