@ -47,6 +47,12 @@ namespace Avalonia.Controls.Primitives
public static readonly StyledProperty < IInputElement ? > OverlayInputPassThroughElementProperty =
public static readonly StyledProperty < IInputElement ? > OverlayInputPassThroughElementProperty =
Popup . OverlayInputPassThroughElementProperty . AddOwner < PopupFlyoutBase > ( ) ;
Popup . OverlayInputPassThroughElementProperty . AddOwner < PopupFlyoutBase > ( ) ;
/// <summary>
/// Defines the <see cref="PlacementConstraintAdjustment"/> property
/// </summary>
public static readonly StyledProperty < PopupPositionerConstraintAdjustment > PlacementConstraintAdjustmentProperty =
Popup . PlacementConstraintAdjustmentProperty . AddOwner < PopupFlyoutBase > ( ) ;
private readonly Lazy < Popup > _ popupLazy ;
private readonly Lazy < Popup > _ popupLazy ;
private Rect ? _ enlargedPopupRect ;
private Rect ? _ enlargedPopupRect ;
private PixelRect ? _ enlargePopupRectScreenPixelRect ;
private PixelRect ? _ enlargePopupRectScreenPixelRect ;
@ -119,6 +125,13 @@ namespace Avalonia.Controls.Primitives
set = > SetValue ( OverlayInputPassThroughElementProperty , value ) ;
set = > SetValue ( OverlayInputPassThroughElementProperty , value ) ;
}
}
/// <inheritdoc cref="Popup.PlacementConstraintAdjustment"/>
public PopupPositionerConstraintAdjustment PlacementConstraintAdjustment
{
get = > GetValue ( PlacementConstraintAdjustmentProperty ) ;
set = > SetValue ( PlacementConstraintAdjustmentProperty , value ) ;
}
IPopupHost ? IPopupHostProvider . PopupHost = > Popup ? . Host ;
IPopupHost ? IPopupHostProvider . PopupHost = > Popup ? . Host ;
event Action < IPopupHost ? > ? IPopupHostProvider . PopupHostChanged
event Action < IPopupHost ? > ? IPopupHostProvider . PopupHostChanged
@ -424,9 +437,7 @@ namespace Avalonia.Controls.Primitives
else
else
{
{
Popup . Placement = Placement ;
Popup . Placement = Placement ;
Popup . PlacementConstraintAdjustment =
Popup . PlacementConstraintAdjustment = PlacementConstraintAdjustment ;
PopupPositioning . PopupPositionerConstraintAdjustment . SlideX |
PopupPositioning . PopupPositionerConstraintAdjustment . SlideY ;
}
}
}
}