Class Popup
Implementation of Popup window control with content
Inherited Members
Namespace: EmptyKeys.UserInterface.Controls.Primitives
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class Popup : UIElement
Constructors
Popup()
Initializes a new instance of the Popup class.
Declaration
public Popup()
Fields
ChildProperty
The child property
Declaration
public static readonly DependencyProperty ChildProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
HorizontalOffsetProperty
The horizontal offset property
Declaration
public static readonly DependencyProperty HorizontalOffsetProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsOpenProperty
The is open property
Declaration
public static readonly DependencyProperty IsOpenProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PlacementProperty
The placement property
Declaration
public static readonly DependencyProperty PlacementProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PlacementTargetProperty
The placement target property
Declaration
public static readonly DependencyProperty PlacementTargetProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
VerticalOffsetProperty
The vertical offset property
Declaration
public static readonly DependencyProperty VerticalOffsetProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
Child
Gets or sets the content.
Declaration
public UIElement Child { get; set; }
Property Value
Type | Description |
---|---|
UIElement | The content. |
HorizontalOffset
Gets or sets the horizontal offset.
Declaration
public float HorizontalOffset { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The horizontal offset. |
IsOpen
Gets or sets a value indicating whether this instance is open.
Declaration
public bool IsOpen { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Placement
Gets or sets the placement.
Declaration
public PlacementMode Placement { get; set; }
Property Value
Type | Description |
---|---|
PlacementMode | The placement. |
PlacementTarget
Gets or sets the placement target.
Declaration
public UIElement PlacementTarget { get; set; }
Property Value
Type | Description |
---|---|
UIElement | The placement target. |
VerticalOffset
Gets or sets the vertical offset.
Declaration
public float VerticalOffset { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The vertical offset. |
Methods
MeasureOverride(Size)
Measure layout pass
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Size | availableSize | available size for element |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.Size |
Overrides
OnClosed()
Called when [closed].
Declaration
protected virtual void OnClosed()
OnOpened()
Called when [opened].
Declaration
protected virtual void OnOpened()
Events
Closed
Occurs when [closed].
Declaration
public event EventHandler Closed
Event Type
Type | Description |
---|---|
System.EventHandler |
Opened
Occurs when [opened].
Declaration
public event EventHandler Opened
Event Type
Type | Description |
---|---|
System.EventHandler |