Show / Hide Table of Contents

Class Popup

Displays content on top of existing content, within the bounds of the application window.

Inheritance
System.Object
DependencyObject
UIElement
FrameworkElement
Popup
Inherited Members
FrameworkElement.MeasureOverride(Size)
FrameworkElement.ArrangeOverride(Size)
FrameworkElement.LayoutUpdated
FrameworkElement.SizeChanged
FrameworkElement.ResourceLookupMode
FrameworkElement.StyleProperty
FrameworkElement.Style
FrameworkElement.DefaultStyleKeyProperty
FrameworkElement.DefaultStyleKey
FrameworkElement.OverridesDefaultStyleProperty
FrameworkElement.OverridesDefaultStyle
FrameworkElement.OnVisualParentChanged(DependencyObject)
FrameworkElement.VisualChildrenCount
FrameworkElement.GetVisualChild(Int32)
FrameworkElement.Parent
FrameworkElement.AddLogicalChild(Object)
FrameworkElement.RemoveLogicalChild(Object)
FrameworkElement.TemplatedParent
FrameworkElement.Resources
FrameworkElement.IsLoaded
FrameworkElement.CreateDomElement(Object, Object)
FrameworkElement.OnApplyTemplate()
FrameworkElement.SetBinding(DependencyProperty, BindingBase)
FrameworkElement.SetBinding(DependencyProperty, Binding)
FrameworkElement.GetBindingExpression(DependencyProperty)
FrameworkElement.Cursor
FrameworkElement.CursorProperty
FrameworkElement.ManageIsEnabled(Boolean)
FrameworkElement.FindName(String)
FrameworkElement.Name
FrameworkElement.NameProperty
FrameworkElement.DataContext
FrameworkElement.DataContextProperty
FrameworkElement.DataContextChanged
FrameworkElement.Triggers
FrameworkElement.FlowDirectionProperty
FrameworkElement.FlowDirection
FrameworkElement.LanguageProperty
FrameworkElement.Language
FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs)
FrameworkElement.Tag
FrameworkElement.TagProperty
FrameworkElement.LoadedEvent
FrameworkElement.Loaded
FrameworkElement.Unloaded
FrameworkElement.BindingValidationError
FrameworkElement.ContextMenuProperty
FrameworkElement.ContextMenu
FrameworkElement.ContextMenuOpening
FrameworkElement.ToolTipProperty
FrameworkElement.ToolTip
FrameworkElement.INTERNAL_OnDetachedFromVisualTree()
FrameworkElement.INTERNAL_OnAttachedToVisualTree()
FrameworkElement.Height
FrameworkElement.HeightProperty
FrameworkElement.Width
FrameworkElement.WidthProperty
FrameworkElement.HorizontalAlignment
FrameworkElement.HorizontalAlignmentProperty
FrameworkElement.VerticalAlignment
FrameworkElement.VerticalAlignmentProperty
FrameworkElement.Margin
FrameworkElement.MarginProperty
FrameworkElement.MinHeight
FrameworkElement.MinHeightProperty
FrameworkElement.MinWidth
FrameworkElement.MinWidthProperty
FrameworkElement.MaxHeight
FrameworkElement.MaxHeightProperty
FrameworkElement.MaxWidth
FrameworkElement.MaxWidthProperty
FrameworkElement.ActualWidthProperty
FrameworkElement.ActualWidth
FrameworkElement.ActualHeightProperty
FrameworkElement.ActualHeight
UIElement.TransformToVisual(UIElement)
UIElement.RenderSize
UIElement.DesiredSize
UIElement.InvalidateMeasure()
UIElement.InvalidateArrange()
UIElement.Measure(Size)
UIElement.Arrange(Rect)
UIElement.UpdateLayout()
UIElement.DragEnter
UIElement.DragLeave
UIElement.Drop
UIElement.DragOver
UIElement.CacheMode
UIElement.CacheModeProperty
UIElement.Projection
UIElement.ProjectionProperty
UIElement.VisualParent
UIElement.AddVisualChild(UIElement)
UIElement.RemoveVisualChild(UIElement)
UIElement.OnVisualChildrenChanged(DependencyObject, DependencyObject)
UIElement.XamlSourcePath
UIElement.ClipToBounds
UIElement.ClipToBoundsProperty
UIElement.ClipProperty
UIElement.Clip
UIElement.IsEnabledProperty
UIElement.IsEnabled
UIElement.IsEnabledChanged
UIElement.EffectProperty
UIElement.Effect
UIElement.RenderTransformProperty
UIElement.RenderTransform
UIElement.RenderTransformOriginProperty
UIElement.RenderTransformOrigin
UIElement.UseLayoutRounding
UIElement.UseLayoutRoundingProperty
UIElement.Visibility
UIElement.VisibilityProperty
UIElement.IsVisibleProperty
UIElement.IsVisible
UIElement.IsVisibleChanged
UIElement.OpacityProperty
UIElement.Opacity
UIElement.OpacityMaskProperty
UIElement.OpacityMask
UIElement.IsHitTestVisible
UIElement.IsHitTestVisibleProperty
UIElement.AllowDrop
UIElement.AllowDropProperty
UIElement.CaptureMouse()
UIElement.IsMouseCaptured
UIElement.ReleaseMouseCapture()
UIElement.AllowScrollOnTouchMove
UIElement.AllowScrollOnTouchMoveProperty
UIElement.AddHandler(RoutedEvent, Delegate, Boolean)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.OnMouseMove(MouseEventArgs)
UIElement.MouseLeftButtonDownEvent
UIElement.MouseLeftButtonDown
UIElement.OnMouseLeftButtonDown(MouseButtonEventArgs)
UIElement.MouseRightButtonDownEvent
UIElement.MouseRightButtonDown
UIElement.OnMouseRightButtonDown(MouseButtonEventArgs)
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.MouseLeftButtonUpEvent
UIElement.MouseLeftButtonUp
UIElement.OnMouseLeftButtonUp(MouseButtonEventArgs)
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.TextInputStartEvent
UIElement.TextInputStart
UIElement.OnTextInputStart(TextCompositionEventArgs)
UIElement.TextInputEvent
UIElement.TextInput
UIElement.OnTextInput(TextCompositionEventArgs)
UIElement.TextInputUpdateEvent
UIElement.TextInputUpdate
UIElement.TappedEvent
UIElement.Tapped
UIElement.OnTapped(TappedRoutedEventArgs)
UIElement.MouseRightButtonUpEvent
UIElement.MouseRightButtonUp
UIElement.OnMouseRightButtonUp(MouseButtonEventArgs)
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.OnKeyDown(KeyEventArgs)
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.OnKeyUp(KeyEventArgs)
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.OnGotFocus(RoutedEventArgs)
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.OnLostFocus(RoutedEventArgs)
UIElement.LostMouseCapture
UIElement.OnLostMouseCapture(MouseEventArgs)
UIElement.INTERNAL_AttachToDomEvents()
UIElement.INTERNAL_DetachFromDomEvents()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
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()
Namespace: System.Windows.Controls.Primitives
Assembly: OpenSilver.dll
Syntax
public class Popup : FrameworkElement, IFrameworkElement, IUIElement, IDependencyObject

Constructors

| Improve this Doc View Source

Popup()

Declaration
public Popup()

Fields

| Improve this Doc View Source

ChildProperty

Gets the identifier for the Child dependency property.

Declaration
public static readonly DependencyProperty ChildProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

HorizontalContentAlignmentProperty

Identifies the HorizontalContentAlignment dependency property.

Declaration
public static readonly DependencyProperty HorizontalContentAlignmentProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

HorizontalOffsetProperty

Gets the identifier for the HorizontalOffset dependency property.

Declaration
public static readonly DependencyProperty HorizontalOffsetProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

IsOpenProperty

Gets the identifier for the IsOpen dependency property.

Declaration
public static readonly DependencyProperty IsOpenProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

PlacementProperty

Gets the identifier for the Placement dependency property.

Declaration
public static readonly DependencyProperty PlacementProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

PlacementTargetProperty

Gets the identifier for the PlacementTarget dependency property.

Declaration
public static readonly DependencyProperty PlacementTargetProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

StaysWithinScreenBoundsProperty

Identifies the StaysWithinScreenBounds dependency property.

Declaration
public static readonly DependencyProperty StaysWithinScreenBoundsProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

VerticalContentAlignmentProperty

Identifies the VerticalContentAlignment dependency property.

Declaration
public static readonly DependencyProperty VerticalContentAlignmentProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

VerticalOffsetProperty

Gets the identifier for the VerticalOffset dependency property.

Declaration
public static readonly DependencyProperty VerticalOffsetProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

Child

Gets or sets the content to be hosted in the popup.

Declaration
public UIElement Child { get; set; }
Property Value
Type Description
UIElement
| Improve this Doc View Source

HorizontalContentAlignment

Gets or sets the horizontal alignment of the control's content.

Declaration
public HorizontalAlignment HorizontalContentAlignment { get; set; }
Property Value
Type Description
HorizontalAlignment
| Improve this Doc View Source

HorizontalOffset

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

IsOpen

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

LogicalChildren

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
FrameworkElement.LogicalChildren
| Improve this Doc View Source

Placement

Gets or sets the position of the Popup relative to the UIElement it is attached to.

Declaration
public PlacementMode Placement { get; set; }
Property Value
Type Description
PlacementMode
| Improve this Doc View Source

PlacementTarget

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
Type Description
UIElement
| Improve this Doc View Source

StayOpen

Declaration
public bool StayOpen { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

StaysWithinScreenBounds

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

VerticalContentAlignment

Gets or sets the vertical alignment of the control's content.

Declaration
public VerticalAlignment VerticalContentAlignment { get; set; }
Property Value
Type Description
VerticalAlignment
| Improve this Doc View Source

VerticalOffset

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

OnCreateAutomationPeer()

Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type Description
AutomationPeer
Overrides
UIElement.OnCreateAutomationPeer()
| Improve this Doc View Source

SetWindow(Window)

Declaration
[NotImplemented]
public void SetWindow(Window associatedWindow)
Parameters
Type Name Description
Window associatedWindow

Events

| Improve this Doc View Source

Closed

Occurs when the IsOpen property changes to false.

Declaration
public event EventHandler Closed
Event Type
Type Description
System.EventHandler
| Improve this Doc View Source

ClosedDueToOutsideClick

Declaration
public event EventHandler ClosedDueToOutsideClick
Event Type
Type Description
System.EventHandler
| Improve this Doc View Source

Opened

Occurs when the IsOpen property changes to true.

Declaration
public event EventHandler Opened
Event Type
Type Description
System.EventHandler

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
UIElementExtendedRoutedEventExtensions.AddHandler(UIElement, ExtendedRoutedEvent, Delegate, Boolean)
UIElementExtendedRoutedEventExtensions.RemoveHandler(UIElement, ExtendedRoutedEvent, Delegate)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
VisualTreeExtensions.GetBoundsRelativeTo(FrameworkElement, UIElement)
VisualTreeExtensions.InvokeOnLayoutUpdated(FrameworkElement, Action)
  • Improve this Doc
  • View Source