Class SillPopup
- Namespace
- WindowSill.API
- Assembly
- WindowSill.API.dll
Represents a popup control that displays custom content in a window positioned relative to a target UI element, typically near the app bar or window sill.
[Bindable]
[WinRTRuntimeClassName("Microsoft.UI.Xaml.IUIElementOverrides")]
[WinRTExposedType(typeof(WindowSill_API_SillPopupWinRTTypeDetails))]
public sealed class SillPopup : Control, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IUnmanagedVirtualMethodTableProvider, IDynamicInterfaceCastable, IEquatable<Control>
- Inheritance
-
SillPopup
- Implements
-
IWinRTObject
- Inherited Members
- Extension Methods
Remarks
SillPopup is designed to present transient UI content, such as dialogs or notifications, in a dedicated window that overlays the main WindowSill interface. The popup is automatically positioned based on the specified target element and the application's sill location settings. The control ensures that the underlying window is styled for a minimal, non-intrusive appearance and remains on top of other windows while open. Thread safety is maintained for UI operations, and the popup's lifecycle is managed asynchronously. This control is intended for scenarios where additional content and interaction needs to be displayed outside of an ISillSingleView or ISillListView.
Constructors
SillPopup()
Initializes a new instance of the SillPopup class.
public SillPopup()
Fields
ContentProperty
Identifies the Content dependency property for a SillPopup control.
public static readonly DependencyProperty ContentProperty
Field Value
Properties
Content
Gets or sets the content to be displayed within the popup.
public SillPopupContent? Content { get; set; }
Property Value
Methods
ShowAsync(SillView)
Displays the popup window asynchronously, positioning it relative to the specified SillView. This method has no effect if the Content property is null.
public Task ShowAsync(SillView targetSillView)
Parameters
targetSillViewSillViewThe SillView element that determines where the popup window will be placed on the screen. Must not be null.
Returns
- Task
A task that represents the asynchronous operation. The task completes when the popup window is closed.
Remarks
The popup is centered and offset relative to the target SillView element, with placement determined by application settings.