|
|
|
@ -93,8 +93,8 @@ namespace Avalonia.Controls.Primitives |
|
|
|
public static readonly StyledProperty<bool> OverlayDismissEventPassThroughProperty = |
|
|
|
AvaloniaProperty.Register<Popup, bool>(nameof(OverlayDismissEventPassThrough)); |
|
|
|
|
|
|
|
public static readonly DirectProperty<Popup, IInputElement> OverlayInputPassThroughElementProperty = |
|
|
|
AvaloniaProperty.RegisterDirect<Popup, IInputElement>( |
|
|
|
public static readonly DirectProperty<Popup, IInputElement?> OverlayInputPassThroughElementProperty = |
|
|
|
AvaloniaProperty.RegisterDirect<Popup, IInputElement?>( |
|
|
|
nameof(OverlayInputPassThroughElement), |
|
|
|
o => o.OverlayInputPassThroughElement, |
|
|
|
(o, v) => o.OverlayInputPassThroughElement = v); |
|
|
|
@ -138,7 +138,7 @@ namespace Avalonia.Controls.Primitives |
|
|
|
private bool _isOpen; |
|
|
|
private bool _ignoreIsOpenChanged; |
|
|
|
private PopupOpenState? _openState; |
|
|
|
private IInputElement _overlayInputPassThroughElement; |
|
|
|
private IInputElement? _overlayInputPassThroughElement; |
|
|
|
private Action<IPopupHost?>? _popupHostChangedHandler; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -310,7 +310,7 @@ namespace Avalonia.Controls.Primitives |
|
|
|
/// Gets or sets an element that should receive pointer input events even when underneath
|
|
|
|
/// the popup's overlay.
|
|
|
|
/// </summary>
|
|
|
|
public IInputElement OverlayInputPassThroughElement |
|
|
|
public IInputElement? OverlayInputPassThroughElement |
|
|
|
{ |
|
|
|
get => _overlayInputPassThroughElement; |
|
|
|
set => SetAndRaise(OverlayInputPassThroughElementProperty, ref _overlayInputPassThroughElement, value); |
|
|
|
|