Search Results for

    Show / Hide Table of Contents

    Class Window

    Inheritance
    object
    DispatcherObject
    UIElement
    Control
    ContentControl
    Window
    Inherited Members
    ContentControl.Child
    Control._background
    Control._foreground
    Control._font
    Control.OnRender(DrawingContext)
    Control.Background
    Control.Font
    Control.Foreground
    UIElement._horizontalAlignment
    UIElement._verticalAlignment
    UIElement.OnGenericEvent(GenericEventArgs)
    UIElement.OnTouchDown(TouchEventArgs)
    UIElement.OnTouchUp(TouchEventArgs)
    UIElement.OnTouchMove(TouchEventArgs)
    UIElement.OnTouchGestureStarted(TouchGestureEventArgs)
    UIElement.OnTouchGestureChanged(TouchGestureEventArgs)
    UIElement.OnTouchGestureEnded(TouchGestureEventArgs)
    UIElement.OnPreviewButtonDown(ButtonEventArgs)
    UIElement.OnButtonDown(ButtonEventArgs)
    UIElement.OnPreviewButtonUp(ButtonEventArgs)
    UIElement.OnButtonUp(ButtonEventArgs)
    UIElement.OnGotFocus(FocusChangedEventArgs)
    UIElement.OnLostFocus(FocusChangedEventArgs)
    UIElement.GetDesiredSize(out int, out int)
    UIElement.GetMargin(out int, out int, out int, out int)
    UIElement.SetMargin(int)
    UIElement.SetMargin(int, int, int, int)
    UIElement.GetLayoutOffset(out int, out int)
    UIElement.GetRenderSize(out int, out int)
    UIElement.OnChildrenChanged(UIElement, UIElement, int)
    UIElement.Measure(int, int)
    UIElement.Arrange(int, int, int, int)
    UIElement.UpdateLayout()
    UIElement.ChildElementFromPoint(int, int)
    UIElement.GetUnclippedSize(out int, out int)
    UIElement.ContainsPoint(int, int)
    UIElement.GetPointerTarget(int, int)
    UIElement.PointToScreen(ref int, ref int)
    UIElement.PointToClient(ref int, ref int)
    UIElement.InvalidateMeasure()
    UIElement.InvalidateArrange()
    UIElement.OnChildDesiredSizeChanged(UIElement)
    UIElement.RenderRecursive(DrawingContext)
    UIElement.InvalidateRect(int, int, int, int)
    UIElement.Invalidate()
    UIElement.RaiseEvent(RoutedEventArgs)
    UIElement.AddToEventRoute(EventRoute, RoutedEventArgs)
    UIElement.AddHandler(RoutedEvent, RoutedEventHandler, bool)
    UIElement.ActualWidth
    UIElement.ActualHeight
    UIElement.Height
    UIElement.Width
    UIElement.LogicalChildren
    UIElement.IsFocused
    UIElement.IsMeasureValid
    UIElement.IsArrangeValid
    UIElement.Parent
    UIElement.RootUIElement
    UIElement.HorizontalAlignment
    UIElement.VerticalAlignment
    UIElement.Visibility
    UIElement.IsVisible
    UIElement.IsEnabled
    UIElement.InstanceEventHandlersStore
    UIElement.TouchDown
    UIElement.TouchUp
    UIElement.TouchMove
    UIElement.TouchGestureStart
    UIElement.TouchGestureChanged
    UIElement.TouchGestureEnd
    UIElement.IsVisibleChanged
    UIElement.IsEnabledChanged
    DispatcherObject.Dispatcher
    DispatcherObject.CheckAccess()
    DispatcherObject.VerifyAccess()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: nanoFramework.Presentation
    Assembly: nanoFramework.Graphics.dll
    Syntax
    public class Window : ContentControl

    Constructors

    Window()

    Constructs a window object

    Declaration
    public Window()
    Remarks

    Automatic determination of current Dispatcher. Use alternative constructor that accepts a Dispatcher for best performance. REFACTOR -- consider specifying app default window sizes to cover Aux case for default window size.

    Properties

    Left

    Declaration
    public int Left { get; set; }
    Property Value
    Type Description
    int

    SizeToContent

    Auto size Window to its content's size

    Declaration
    public SizeToContent SizeToContent { get; set; }
    Property Value
    Type Description
    SizeToContent

    Default value is SizeToContent.Manual

    Remarks
    1. SizeToContent can be applied to Width Height independently
    2. After SizeToContent is set, setting Width/Height does not take affect if that dimension is sizing to content.

    Top

    Position for Top of the host window

    Declaration
    public int Top { get; set; }
    Property Value
    Type Description
    int

    Topmost

    Determines if this window is always on the top.

    Declaration
    public bool Topmost { get; set; }
    Property Value
    Type Description
    bool

    Methods

    ArrangeOverride(int, int)

    ArrangeOverride allows for the customization of the positioning of children.

    Declaration
    protected override void ArrangeOverride(int arrangeWidth, int arrangeHeight)
    Parameters
    Type Name Description
    int arrangeWidth
    int arrangeHeight
    Overrides
    UIElement.ArrangeOverride(int, int)
    Remarks

    Deducts the frame size of the window from the constraint and then arranges it's child. Supports only one child.

    Close()

    Declaration
    public void Close()

    MeasureOverride(int, int, out int, out int)

    Measurement override. Implements content sizing logic.

    Declaration
    protected override void MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)
    Parameters
    Type Name Description
    int availableWidth
    int availableHeight
    int desiredWidth
    int desiredHeight
    Overrides
    ContentControl.MeasureOverride(int, int, out int, out int)
    Remarks

    Deducts the frame size from the constraint and then passes it on to it's child. Only supports one Visual child (just like control)

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    In This Article
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX