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
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
Identifies the HorizontalContentAlignment dependency property.
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
This boolean determines whether the popup can force its content to catch clicks.
It will usually need to be true (for example to allow clicking on a ComboBoxItem).
It should be set to false in specific cases like non-modal childWindows where we do not want the Overlay to catch and prevent all click events outside of the childWindow itself.
Defaults to True.
Declaration
public bool INTERNAL_AllowDisableClickTransparency
Field Value
Type |
Description |
System.Boolean |
|
|
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
Gets the identifier for the PlacementTarget dependency property
Declaration
public static readonly DependencyProperty PlacementTargetProperty
Field Value
|
Improve this Doc
View Source
Identifies the StaysWithinScreenBounds dependency property.
Declaration
public static readonly DependencyProperty StaysWithinScreenBoundsProperty
Field Value
|
Improve this Doc
View Source
Identifies the VerticalContentAlignment dependency property.
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 or sets the position of the Popup relative to the UIElement it is attached to. NOTE: The only currently supported positions are Right and Bottom.
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 Size ArrangeOverride(Size finalSize)
Parameters
Type |
Name |
Description |
Size |
finalSize |
|
Returns
Overrides
|
Improve this Doc
View Source
Declaration
protected override void INTERNAL_OnDetachedFromVisualTree()
Overrides
|
Improve this Doc
View Source
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type |
Name |
Description |
Size |
availableSize |
|
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 System.Windows.Controls.Primitives.Popup.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 System.Windows.Controls.Primitives.Popup.IsOpen property changes to true.
Declaration
public event EventHandler Opened
Event Type
Type |
Description |
System.EventHandler |
|
Extension Methods