Implementation of behavior functionality for WPF.
More...
Implementation of behavior functionality for WPF.
◆ SetIsAllEventEffectsEnabled()
static void SetIsAllEventEffectsEnabled |
( |
this FrameworkElement |
element, |
|
|
bool |
isEventEffectEnabled |
|
) |
| |
|
inlinestatic |
◆ GetIsAllEventEffectsEnabled()
static bool GetIsAllEventEffectsEnabled |
( |
this FrameworkElement |
element | ) |
|
|
inlinestatic |
◆ SetIsGazeAware()
static void SetIsGazeAware |
( |
this FrameworkElement |
element, |
|
|
bool |
isGazeAware |
|
) |
| |
|
inlinestatic |
Sets whether or not this FrameworkElement is gaze aware.
- Parameters
-
element | The framework element. |
isGazeAware | If set to true , this framework element is gaze aware. |
◆ GetIsGazeAware()
static bool GetIsGazeAware |
( |
this FrameworkElement |
element | ) |
|
|
inlinestatic |
Gets whether or not this FrameworkElement is gaze aware.
- Parameters
-
element | The framework element. |
- Returns
- Whether or not this framework element is gaze aware.
◆ SetHasGaze()
static void SetHasGaze |
( |
this FrameworkElement |
element, |
|
|
bool |
hasGaze |
|
) |
| |
|
inlinestatic |
Sets whether or not this framework element has gaze.
- Parameters
-
element | The framework element. |
hasGaze | If set to true , this framework element has gaze. |
◆ GetHasGaze()
static bool GetHasGaze |
( |
this FrameworkElement |
element | ) |
|
|
inlinestatic |
Gets whether or not this FrameworkElement has gaze.
- Parameters
-
element | The framework element. |
- Returns
- Whether or not this framework element has gaze.
◆ SetHasGazeChangedCommand()
static void SetHasGazeChangedCommand |
( |
this FrameworkElement |
element, |
|
|
ICommand |
hasGazeChangedCommand |
|
) |
| |
|
inlinestatic |
Sets the has gaze changed ICommand associated with this FrameworkElement.
- Parameters
-
element | The framework element. |
hasGazeChangedCommand | The has gaze changed command. |
◆ GetHasGazeChangedCommand()
static ICommand GetHasGazeChangedCommand |
( |
this FrameworkElement |
element | ) |
|
|
inlinestatic |
Gets the has gaze changed ICommand.
- Parameters
-
element | The framework element. |
- Returns
- The has gaze changed command.
◆ AddHasGazeChangedHandler()
Adds a EventHandler for the has gaze changed event.
- Parameters
-
element | The framework element. |
handler | The routed event handler to be added. |
◆ RemoveHasGazeChangedHandler()
Removes a EventHandler for the has gaze changed event.
- Parameters
-
element | The framework element. |
handler | The routed event handler to be removed. |
◆ SetIsOccluder()
static void SetIsOccluder |
( |
this FrameworkElement |
element, |
|
|
bool |
isOccluder |
|
) |
| |
|
inlinestatic |
Sets whether or not this FrameworkElement is an occluder.
- Parameters
-
element | The framework element. |
isOccluder | If set to true , this framework element is an occluder. |
◆ GetIsOccluder()
static bool GetIsOccluder |
( |
this FrameworkElement |
element | ) |
|
|
inlinestatic |
Gets whether or not this FrameworkElement is an occluder.
- Parameters
-
element | The framework element. |
- Returns
- Whether or not this framework element is an occluder.
◆ IsAllEventEffectsEnabledProperty
readonly DependencyProperty IsAllEventEffectsEnabledProperty |
|
static |
Initial value:= DependencyProperty.RegisterAttached(
"IsAllEventEffectsEnabled",
typeof(bool),
typeof(Behaviors),
new FrameworkElementPropertyMetadata(true, OnIsEventEffectEnabledChanged))
Gets or sets if all interactor event effects are enabled for this element.
◆ IsGazeAwareProperty
readonly DependencyProperty IsGazeAwareProperty |
|
static |
Initial value:= DependencyProperty.RegisterAttached(
"IsGazeAware",
typeof(bool),
typeof(Behaviors),
new FrameworkElementPropertyMetadata(false, OnIsGazeAwareChanged))
The gaze aware dependency property.
◆ HasGazeProperty
readonly DependencyProperty HasGazeProperty |
|
static |
Initial value:= DependencyProperty.RegisterAttached(
"HasGaze",
typeof(bool),
typeof(Behaviors),
new FrameworkPropertyMetadata(false))
The has gaze dependency property.
◆ HasGazeChangedCommandProperty
readonly DependencyProperty HasGazeChangedCommandProperty |
|
static |
Initial value:= DependencyProperty.RegisterAttached(
"HasGazeChangedCommand",
typeof(ICommand),
typeof(Behaviors),
new AttachedCommandPropertyMetadata(OnHasGazeChangedCommandChanged))
The has gaze changed command dependency property.
◆ HasGazeChangedEvent
readonly RoutedEvent HasGazeChangedEvent |
|
static |
Initial value:= EventManager.RegisterRoutedEvent(
"HasGazeChanged",
RoutingStrategy.Bubble,
typeof(EventHandler<HasGazeChangedRoutedEventArgs>),
typeof(Behaviors))
Registers a RoutedEvent for the has gaze changed event.
◆ IsOccluderProperty
readonly DependencyProperty IsOccluderProperty |
|
static |
Initial value:= DependencyProperty.RegisterAttached(
"IsOccluder",
typeof (bool),
typeof (Behaviors),
new FrameworkElementPropertyMetadata(false, OnIsOccluderChanged))
The occluder dependency property.
The documentation for this class was generated from the following files:
- Behaviors.cs
- Behaviors.GazeAware.cs
- Behaviors.Occluder.cs