Class SillViewBase
- Namespace
- WindowSill.API
- Assembly
- WindowSill.API.dll
Provides a base class for WindowSill views that automatically manages orientation and size properties based on application settings. This class handles the coordination between sill location, size settings, and the resulting orientation and size combination for UI layout purposes.
public abstract class SillViewBase : ContentControl, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IEquatable<Control>, IWinRTObject, IUnmanagedVirtualMethodTableProvider, IDynamicInterfaceCastable, IEquatable<ContentControl>
- Inheritance
-
SillViewBase
- Implements
-
IWinRTObject
- Derived
- Inherited Members
- Extension Methods
Constructors
SillViewBase()
Initializes a new instance of the SillViewBase class.
protected SillViewBase()
Fields
IsSillHorizontalProperty
Identifies the IsSillHorizontal dependency property.
public static readonly DependencyProperty IsSillHorizontalProperty
Field Value
SillOrientationAndSizeProperty
Identifies the SillOrientationAndSize dependency property.
public static readonly DependencyProperty SillOrientationAndSizeProperty
Field Value
Properties
IsSillHorizontal
Gets a value indicating whether the sill is positioned horizontally on the screen.
Returns true when the sill is at the top or bottom of the screen,
false when positioned on the left or right sides.
public bool IsSillHorizontal { get; }
Property Value
SillOrientationAndSize
Gets or sets the combined orientation and size configuration of the sill. This property automatically updates when the sill location or size settings change, providing a single value that UI elements can bind to for layout decisions.
public SillOrientationAndSize SillOrientationAndSize { get; }
Property Value
Events
IsSillOrientationOrSizeChanged
Occurs when either the sill's orientation or size configuration changes. This event allows derived classes and external consumers to respond to layout changes that may require UI updates or recalculations.
public event EventHandler? IsSillOrientationOrSizeChanged