Displays content on top of existing content, within the bounds of the application window.
Inheritance
System.Object
Popup
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: OpenSilver.dll
public class Popup : FrameworkElement, IFrameworkElement, IUIElement, IDependencyObject
Constructors
|
Improve this Doc
View Source
Declaration
Fields
|
Improve this Doc
View Source
Gets the identifier for the Child dependency property.
Declaration
public static readonly DependencyProperty ChildProperty
Field Value
|
Improve this Doc
View Source
Declaration
public static readonly DependencyProperty HorizontalContentAlignmentProperty
Field Value
|
Improve this Doc
View Source
Gets the identifier for the HorizontalOffset dependency property.
Declaration
public static readonly DependencyProperty HorizontalOffsetProperty
Field Value
|
Improve this Doc
View Source
Gets the identifier for the IsOpen dependency property.
Declaration
public static readonly DependencyProperty IsOpenProperty
Field Value
|
Improve this Doc
View Source
Gets the identifier for the Placement dependency property.
Declaration
public static readonly DependencyProperty PlacementProperty
Field Value
|
Improve this Doc
View Source
Declaration
public static readonly DependencyProperty PlacementTargetProperty
Field Value
|
Improve this Doc
View Source
Declaration
public static readonly DependencyProperty StaysWithinScreenBoundsProperty
Field Value
|
Improve this Doc
View Source
Declaration
public static readonly DependencyProperty VerticalContentAlignmentProperty
Field Value
|
Improve this Doc
View Source
Gets the identifier for the VerticalOffset dependency property.
Declaration
public static readonly DependencyProperty VerticalOffsetProperty
Field Value
Properties
|
Improve this Doc
View Source
Gets or sets the content to be hosted in the popup.
Declaration
public UIElement Child { get; set; }
Property Value
|
Improve this Doc
View Source
Gets or sets the horizontal alignment of the control's content.
Declaration
public HorizontalAlignment HorizontalContentAlignment { get; set; }
Property Value
|
Improve this Doc
View Source
Gets or sets the distance between the left side of the application window and the left side of the popup.
Declaration
public double HorizontalOffset { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Gets or sets whether the popup is currently displayed on the screen.
Declaration
public bool IsOpen { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Gets an enumerator that you can use to access the logical child elements of the
Popup control.
Declaration
protected override IEnumerator LogicalChildren { get; }
Property Value
Type |
Description |
System.Collections.IEnumerator |
An System.Collections.IEnumerator that you can use to access the logical child elements
of a Popup control. The default is null.
|
Overrides
|
Improve this Doc
View Source
Gets or sets the position of the Popup relative to the UIElement it is attached to.
Declaration
public PlacementMode Placement { get; set; }
Property Value
|
Improve this Doc
View Source
Gets or Sets the UIElement that the Popup will stick to. A null value will make the Popup stay at its originally defined position.
Declaration
public UIElement PlacementTarget { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public bool StayOpen { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Get or sets a boolean stating whether the popup should stay within the screen boundaries or not.
Declaration
public bool StaysWithinScreenBounds { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Gets or sets the vertical alignment of the control's content.
Declaration
public VerticalAlignment VerticalContentAlignment { get; set; }
Property Value
|
Improve this Doc
View Source
Gets or sets the distance between the top of the application window and the top of the popup.
Declaration
public double VerticalOffset { get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
|
Improve this Doc
View Source
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Overrides
|
Improve this Doc
View Source
Declaration
[NotImplemented]
public void SetWindow(Window associatedWindow)
Parameters
Type |
Name |
Description |
Window |
associatedWindow |
|
Events
|
Improve this Doc
View Source
Occurs when the IsOpen property changes to false.
Declaration
public event EventHandler Closed
Event Type
Type |
Description |
System.EventHandler |
|
|
Improve this Doc
View Source
Declaration
public event EventHandler ClosedDueToOutsideClick
Event Type
Type |
Description |
System.EventHandler |
|
|
Improve this Doc
View Source
Occurs when the IsOpen property changes to true.
Declaration
public event EventHandler Opened
Event Type
Type |
Description |
System.EventHandler |
|
Extension Methods