Class
PopupPlacement

Represents an attached behavior that can be used to adjust popup according to placement and boundaries.

Definition

Namespace:Telerik.UI.Xaml.Controls

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class PopupPlacement : DependencyObject

Inheritance: objectPopupPlacement

Constructors

PopupPlacement()

Declaration

cs-api-definition
public PopupPlacement()

Fields

ClickedOutsidePopupEvent

Identifies the ClickedOutsidePopup routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ClickedOutsidePopupEvent

Field Value

RoutedEvent

HorizontalOffsetProperty

Identifies HorizontalOffset dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HorizontalOffsetProperty

Field Value

DependencyProperty

IsOpenProperty

Identifies IsOpen dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsOpenProperty

Field Value

DependencyProperty

MousePositionProperty

Identifies the MousePosition routed event.

Declaration

cs-api-definition
public static readonly DependencyProperty MousePositionProperty

Field Value

DependencyProperty

OpenedEvent

Identifies the Opened routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent OpenedEvent

Field Value

RoutedEvent

PlacementProperty

Identifies Placement dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PlacementProperty

Field Value

DependencyProperty

PlacementRectangleProperty

Identifies PlacementRectangle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PlacementRectangleProperty

Field Value

DependencyProperty

PlacementTargetProperty

Identifies PlacementTarget dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PlacementTargetProperty

Field Value

DependencyProperty

PopupPlacementProperty

Identifies the PopupPlacement attached dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PopupPlacementProperty

Field Value

DependencyProperty

StaysOpenProperty

Identifies StaysOpenProperty dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StaysOpenProperty

Field Value

DependencyProperty

VerticalOffsetProperty

Identifies VerticalOffset dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty VerticalOffsetProperty

Field Value

DependencyProperty

Properties

AnimateFromBottom

Gets value that specify if animation should slide from the opposite direction.

Declaration

cs-api-definition
public bool AnimateFromBottom { get; }

Property Value

bool

AnimateFromRight

Gets value that specify if animation should slide from the opposite direction.

Declaration

cs-api-definition
public bool AnimateFromRight { get; }

Property Value

bool

CursorSize

Gets or sets the Cursor size.

Declaration

cs-api-definition
public static Size CursorSize { get; set; }

Property Value

Size

HorizontalOffset

Gets or sets the horizontal offset for the popup.

Declaration

cs-api-definition
public double HorizontalOffset { get; set; }

Property Value

double

IsOpen

Gets or sets the IsOpen property for the popup.

Declaration

cs-api-definition
public bool IsOpen { get; set; }

Property Value

bool

MousePosition

Gets or sets the mouse position. This is global mouse position and should be relative to null (e.g. mouseEventArgs.GetPosition(null)).

Declaration

cs-api-definition
public Point? MousePosition { get; set; }

Property Value

Point?

Placement

Gets or sets the placement of the popup.

Declaration

cs-api-definition
public PlacementMode Placement { get; set; }

Property Value

PlacementMode

PlacementRectangle

Gets or sets the placement rectangle for the popup.

Declaration

cs-api-definition
public Rect PlacementRectangle { get; set; }

Property Value

Rect

PlacementTarget

Gets or sets the placement target for the popup.

Declaration

cs-api-definition
public FrameworkElement PlacementTarget { get; set; }

Property Value

FrameworkElement

Popup

Gets the popup instance on which PopupPlacement is attached.

Declaration

cs-api-definition
public Popup Popup { get; }

Property Value

Popup

StaysOpen

Gets or sets a value that indicates whether the Popup control closes when the control is no longer in focus.

Declaration

cs-api-definition
public bool StaysOpen { get; set; }

Property Value

bool

VerticalOffset

Gets or sets the vertical offset for the popup.

Declaration

cs-api-definition
public double VerticalOffset { get; set; }

Property Value

double

Methods

GetPopupPlacement(DependencyObject)

Gets the value of the PopupPlacement attached property for a dependency object.

Declaration

cs-api-definition
public static PopupPlacement GetPopupPlacement(DependencyObject obj)

Parameters

obj

DependencyObject

The element from which the property value is read.

Returns

PopupPlacement

The PopupPlacement property value for the dependency object.

RepositionDeferred()

Reposition the popup after one layout cycle.

Declaration

cs-api-definition
public void RepositionDeferred()

RepositionImmediate()

Reposition the popup immediately.

Declaration

cs-api-definition
public void RepositionImmediate()

SetPopupPlacement(DependencyObject, PopupPlacement)

Sets the value of the PopupPlacement attached property to a specified element.

Declaration

cs-api-definition
public static void SetPopupPlacement(DependencyObject obj, PopupPlacement value)

Parameters

obj

DependencyObject

The element to which the attached property is written.

value

PopupPlacement

The needed PopupPlacement value.

Events

ClickedOutsidePopup

Occurs when there is a mouse click outside the popup.

Declaration

cs-api-definition
public event RadRoutedEventHandler ClickedOutsidePopup

Event Value

RadRoutedEventHandler

Opened

Occurs when popup is opened and positioned.

Declaration

cs-api-definition
public event RadRoutedEventHandler Opened

Event Value

RadRoutedEventHandler