UpdateSelectionFromEventSource Method
Updates the selection based on an event that may have originated in a container that belongs to the control.
Definition
Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
protected bool UpdateSelectionFromEventSource(
Object? eventSource,
bool select = true,
bool rangeModifier = false,
bool toggleModifier = false,
bool rightButton = false,
bool fromFocus = false
)
Protected Function UpdateSelectionFromEventSource (
eventSource As Object,
Optional select As Boolean = true,
Optional rangeModifier As Boolean = false,
Optional toggleModifier As Boolean = false,
Optional rightButton As Boolean = false,
Optional fromFocus As Boolean = false
) As Boolean
member UpdateSelectionFromEventSource :
eventSource : Object *
?select : bool *
?rangeModifier : bool *
?toggleModifier : bool *
?rightButton : bool *
?fromFocus : bool
(* Defaults:
let _select = defaultArg select true
let _rangeModifier = defaultArg rangeModifier false
let _toggleModifier = defaultArg toggleModifier false
let _rightButton = defaultArg rightButton false
let _fromFocus = defaultArg fromFocus false
*)
-> bool
Parameters
- Object
- The control that raised the event.
- Boolean (Optional)
- Whether the container should be selected or unselected.
- Boolean (Optional)
- Whether the range modifier is enabled (i.e. shift key).
- Boolean (Optional)
- Whether the toggle modifier is enabled (i.e. ctrl key).
- Boolean (Optional)
- Whether the event is a right-click.
- Boolean (Optional)
- Wheter the event is a focus event
Return Value
Boolean
True if the event originated from a container that belongs to the control; otherwise false.
See Also
Reference
SelectingItemsControl Class
Avalonia.Controls.Primitives Namespace