Class TanvasTouchViewTracker
Keeps a TView aligned with a
Inheritance
System.Object
TanvasTouchViewTracker
Namespace: Tanvas.TanvasTouch.WpfUtilities
Assembly: Tanvas.TanvasTouch.WpfUtilities.dll
Syntax
public class TanvasTouchViewTracker : IDisposable
Remarks
This class creates and positions a TView whose top-left corner corresponds to the top-left corner in a window's client area. The TView's position and size is kept in sync with the window's position and size. When the window loses focus, the TView is disabled; when the window gains focus, it is enabled.
This class owns the TView that it manipulates, so disposing an instance of this class will also dispose its TView.
Constructors
TanvasTouchViewTracker(Window)
Constructor for TanvasTouchViewTracker.
Declaration
public TanvasTouchViewTracker(Window window)
Parameters
Type | Name | Description |
---|---|---|
Window | window | The window that will be tracked. |
Remarks
This can only be called after the
Fields
OnGeometryChanged
Declaration
public TanvasTouchViewTracker.GeometryChanged OnGeometryChanged
Field Value
Type | Description |
---|---|
TanvasTouchViewTracker.GeometryChanged |
Properties
View
Declaration
public TView View { get; }
Property Value
Type | Description |
---|---|
TView |
Methods
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |