Implementation of an IInteractor for WPF.
More...
|
bool | IsUnavailable => !_isBoundToElement || !_elementIsVisible |
| Gets whether the interactor is available. For example when the interactor is alive and well, but residing in a UI element that is not currently visible. More...
|
|
|
FrameworkElement | Element [get] |
| Gets the framework element. More...
|
|
FrameworkElement | TopLevelElement [get] |
| Gets the top level element. More...
|
|
Rectangle | CachedBounds [get] |
| Gets the cached bounds. More...
|
|
override IEnumerable< IBehavior > | Behaviors [get] |
| Gets the behaviors associated with this interactor. More...
|
|
string | Id [get] |
| Gets the interactor identifier. More...
|
|
string | ParentId [get] |
| Gets the interactor's parent identifier. More...
|
|
string | WindowId [get] |
| Gets the window identifier that this interactor belong to. More...
|
|
double | Z [get] |
| Gets the Z order of the interactor. More...
|
|
bool | IsDeleted [get] |
| Gets the IsDeleted flag of the interactor. More...
|
|
bool | IsEnabled [get] |
| Gets/sets the IsEnabled flag of the interactor. More...
|
|
abstract IEnumerable< IBehavior > | Behaviors [get] |
| Gets the behaviors associated with this interactor. More...
|
|
IMask | Mask [get] |
| Gets the IMask used to describe the geometry of the interactor in detail (if needed). Will be null when the interactor has no mask (the normal case). More...
|
|
Rectangle? | MaskBounds [get] |
| Gets a rectangle describing the mask bounds. The mask bounds describe the geometry over which the mask applies. The X and Y coordinates are relative to the X and Y coordinates of the interactor bounds. If no bounds are supplied the same bounds as for the interactor will be assumed. More...
|
|
string | Id [get] |
| Gets the interactor identifier. More...
|
|
string | ParentId [get] |
| Gets the interactor's parent identifier. More...
|
|
string | WindowId [get] |
| Gets the window identifier that this interactor belong to. More...
|
|
double | Z [get] |
| Gets the Z order of the interactor. More...
|
|
bool | IsDeleted [get] |
| Gets the IsDeleted flag of the interactor. More...
|
|
bool | IsEnabled [get] |
| Gets the IsEnabled flag of the interactor. More...
|
|
IEnumerable< IBehavior > | Behaviors [get] |
| Gets the behaviors associated with this interactor. More...
|
|
IMask | Mask [get] |
| Gets the IMask used to describe the geometry of the interactor in detail (if needed). Will be null when the interactor has no mask (the normal case). More...
|
|
Rectangle? | MaskBounds [get] |
| Gets a rectangle describing the mask bounds. The mask bounds describe the geometry over which the mask applies. The X and Y coordinates are relative to the X and Y coordinates of the interactor bounds. If null, the same bounds as for the interactor will be assumed. More...
|
|
Implementation of an IInteractor for WPF.
◆ WpfInteractor()
Initializes a new instance of the WpfInteractor class.
- Parameters
-
element | The element. |
id | The identifier. |
◆ GetBounds()
Gets the bounds of the interactor.
- Returns
- The bounds of the interactor.
Implements InteractorBase.
◆ SetIsEnabled()
void SetIsEnabled |
( |
bool |
isEnabled | ) |
|
|
inline |
Sets the IsEnabled flag of the interactor.
The IsEnabled flag value for the interactor.
◆ InvokeOnElementAsync()
Task InvokeOnElementAsync |
( |
Action |
action | ) |
|
|
inline |
Invoke and action on the UI thread of the FrameworkElement associated with this interactor.
- Parameters
-
action | The action to be invoked. |
- Returns
- A Task representing the invocation.
◆ EnableEventEffects()
◆ DisableEventEffects()
◆ IsUnavailable
bool IsUnavailable => !_isBoundToElement || !_elementIsVisible |
Gets whether the interactor is available. For example when the interactor is alive and well, but residing in a UI element that is not currently visible.
Marks if the interactor is unavailable, e.g. if the element which it is bound to has been unloaded. This state is not the same as deleted, but if it is unavailable then a snapshot interactor which gets populated with this interactor is marked as deleted. This is so hidden elements can remove its interactor immediately, and not wait for the cache to timeout.
◆ Element
Gets the framework element.
The element.
◆ TopLevelElement
FrameworkElement TopLevelElement |
|
get |
Gets the top level element.
The window.
◆ CachedBounds
Gets the cached bounds.
The cached bounds.
The documentation for this class was generated from the following file: