|
|
@ -354,7 +354,7 @@ namespace Avalonia.Controls.Primitives |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="eventSource">The control that raised the event.</param>
|
|
|
/// <param name="eventSource">The control that raised the event.</param>
|
|
|
/// <returns>The container or null if the event did not originate in a container.</returns>
|
|
|
/// <returns>The container or null if the event did not originate in a container.</returns>
|
|
|
protected IControl? GetContainerFromEventSource(IInteractive eventSource) |
|
|
protected IControl? GetContainerFromEventSource(IInteractive? eventSource) |
|
|
{ |
|
|
{ |
|
|
for (var current = eventSource as IVisual; current != null; current = current.VisualParent) |
|
|
for (var current = eventSource as IVisual; current != null; current = current.VisualParent) |
|
|
{ |
|
|
{ |
|
|
@ -666,7 +666,7 @@ namespace Avalonia.Controls.Primitives |
|
|
/// false.
|
|
|
/// false.
|
|
|
/// </returns>
|
|
|
/// </returns>
|
|
|
protected bool UpdateSelectionFromEventSource( |
|
|
protected bool UpdateSelectionFromEventSource( |
|
|
IInteractive eventSource, |
|
|
IInteractive? eventSource, |
|
|
bool select = true, |
|
|
bool select = true, |
|
|
bool rangeModifier = false, |
|
|
bool rangeModifier = false, |
|
|
bool toggleModifier = false, |
|
|
bool toggleModifier = false, |
|
|
|