[Handler(Navigation.IHandler)] public class Navigation : Container
Control to show child panels in a hirarchical stack using a navigation button to go back to a previous panel.
Remarks: Typically only available on mobile platforms, this allows you to show multiple panes of information in a hierarchical fashion, keeping the state of previous panes.

Constructors

Navigation

#
public Navigation(Control content, string title = null)
Initializes a new instance of the Navigation class with the initial content and title.

Navigation

#
public Navigation(INavigationItem item)
Initializes a new instance of the Navigation class with the initial navigation item.

Fields

ItemRemovedEvent

#
public const string ItemRemovedEvent = "Navigation.ItemRemoved"
Event identifier for handlers when attaching the ItemRemoved event

ItemShownEvent

#
public const string ItemShownEvent = "Navigation.ItemShown"
Event identifier for handlers when attaching the ItemShown event

Properties

AllowDrop

public virtual bool AllowDrop { get; set; }
Gets or sets a value indicating whether this control can serve as drop target.
inherited fromControl

BackgroundColor

public virtual Color BackgroundColor { get; set; }
Gets or sets the color for the background of the control
inherited fromControl
Remarks: Note that on some platforms (e.g. Mac), setting the background color of a control can change the performance characteristics of the control and its children, since it must enable layers to do so.
The color of the background.

Bounds

public Rectangle Bounds { get; }
Gets the bounding rectangle of this control relative to its container
inherited fromControl

Children

public IEnumerable<Control> Children { get; }
Gets an enumeration of all contained child controls, including controls within child containers
inherited fromContainer

ClientSize

public Size ClientSize { get; set; }
Gets or sets the size for the client area of the control
inherited fromContainer
Remarks: The client size differs from the Control.Size in that it excludes the decorations of the container, such as the title bar and border around a Window, or the title and line around a GroupBox.
The size of the client area

ContextMenu

public ContextMenu ContextMenu { get; set; }
Gets or sets the context menu that appears when the user right-clicks on the control.
inherited fromControl
Remarks: On some platforms and controls, such as macOS, the context menu can have additional items added by the system. Also the menu may appear when pressing different keys, such as a control-click on macOS, or when pressing the menu key on Windows keyboards. There is also some other semantic differences of using this vs. showing a context menu manually, such as on Windows, right clicking on a TextBox or TextArea will keep the selection visible, whereas this would not be the case if you showed the context menu manually.

ControlObject

public object ControlObject { get; }
Gets the instance of the platform-specific object
inherited fromWidget
Remarks: This can sometimes be useful to get the platform-specific object. Some handlers may not have any backing object for its functionality, so this may be null. It is more preferred to use the Widget.Handler and cast that to the platform-specific handler class which can give you additional methods and helpers to do common tasks. For example, the Application object's handler for OS X has a AddFullScreenMenuItem property to specify if you want full screen support in your app.

Controls

#
public override IEnumerable<Control> Controls { get; }
Gets an enumeration of controls that are directly contained by this container

Cursor

public virtual Cursor Cursor { get; set; }
Gets or sets the type of cursor to use when the mouse is hovering over the control
inherited fromControl

DataContext

public object DataContext { get; set; }
Gets or sets the data context for this widget for binding
inherited fromBindableWidget
Remarks: Subclasses may override the standard behaviour so that hierarchy of widgets can be taken into account. For example, a Control may return the data context of a parent, if it is not set explicitly.
DataContext

Enabled

[DefaultValue(true)] public virtual bool Enabled { get; set; }
Gets or sets a value indicating whether this Control (or its children) are enabled and accept user input.
inherited fromControl
Remarks: Typically when a control is disabled, the user cannot do anything with the control or any of its children. Including for example, selecting text in a text control. Certain controls can have a 'Read Only' mode, such as TextBox.ReadOnly which allow the user to select text, but not change its contents.
true if enabled; otherwise, false.

Handler

protected Control.IHandler Handler { get; }
Gets the handler for the widget, ensuring the current thread is the UI thread
inherited fromControl

HasFocus

public virtual bool HasFocus { get; }
Gets a value indicating whether this instance has the keyboard input focus.
inherited fromControl

IsAttached

public bool IsAttached { get; }
Gets a value indicating this control has been attached to a native container
inherited fromControl

IsDataContextChanging

public bool IsDataContextChanging { get; set; }
Gets a value indicating that the BindableWidget.DataContext property is changing.
inherited fromBindableWidget
Remarks: This can be used to determine when to allow certain logic during the update of the data context. It is used to disable binding setters on the model when the data context changes so that a binding does not cause the view model to be updated when the state hasn't been fully set yet.
true if the DataContext is currently changing, false otherwise.

IsDisposed

public bool IsDisposed { get; }
Gets or sets a value indicating whether this Widget has been disposed.
inherited fromWidget
Remarks: When the widget is disposed, it can no longer be used.
true if this instance has been disposed; otherwise, false.

IsMouseCaptured

public bool IsMouseCaptured { get; }
Gets a value indicating this control currently has mouse capture
inherited fromControl
Remarks: Mouse capture can happen during a handled MouseDown event until MouseUp, or it can be captured explicitly via Control.CaptureMouse().

IsSupported

#
public static bool IsSupported { get; }
Gets a value indicating that the Navigation control is supported by the current platform.

IsSuspended

public bool IsSuspended { get; }
Gets a value indicating whether the layout of child controls is suspended.
inherited fromControl

IsVisualControl

public bool IsVisualControl { get; }
Gets a value indicating this Control is part of the visual tree.
inherited fromControl

Loaded

public bool Loaded { get; }
Gets a value indicating that the control is loaded onto a form, that is it has been created, added to a parent, and shown
inherited fromControl
Remarks: The Control.OnLoad(EventArgs) method sets this value to true after cascading to all children (for a Container) and calling the platform handler's implementation. It is called after adding to a loaded form, or when showing a new form. The Control.OnUnLoad(EventArgs) method will set this value to false when the control is removed from its parent

Location

public Point Location { get; }
Gets the location of the control as positioned by the container
inherited fromControl
Remarks: A control's location is set by the container. This can be used to determine where the control is for overlaying floating windows, menus, etc.
The current location of the control

LogicalParent

public Container LogicalParent { get; }
Gets the logical parent control.
inherited fromControl
Remarks: When the control is part of the visual tree (Control.IsVisualControl is true), this returns the logical parent that contains this control. Otherwise this is the same as Control.Parent.
The logical parent.

NativeHandle

public nint NativeHandle { get; }
Gets the native platform-specific handle for integration purposes
inherited fromWidget

Parent

public Container Parent { get; }
Gets the container which this control has been added to, if any
inherited fromControl

ParentWindow

public Window ParentWindow { get; }
Gets the window this control is contained in
inherited fromControl

Platform

public Platform Platform { get; }
Gets the platform that was used to create the Widget.Handler for this widget
inherited fromWidget
Remarks: This gets set to the current Platform.Instance during the construction of the object

Properties

public PropertyStore Properties { get; }
Gets the dictionary of properties for this widget
inherited fromWidget

Size

public virtual Size Size { get; set; }
Gets or sets the size of the control. Use -1 to specify auto sizing for either the width and/or height.
inherited fromControl
Remarks: Setting the size of controls is entirely optional as most controls will size themselves appropriately. When specifying a size, it will be used as the desired size of the control. The container will reposition and resize the control depending on the available size. For a Window, it is preferred to set the Container.ClientSize instead, as various platforms have different sizes of window decorations, toolbars, etc.
The current size of the control

Style

public string Style { get; set; }
Gets or sets the style of this widget
inherited fromWidget
Remarks: Styles allow you to attach custom platform-specific logic to a widget. In your platform-specific assembly, use Add{H} to add the style logic with the same id.
// in your UI
var control = new Button { Style = "mystyle" };

// in your platform assembly
using Eto.Mac.Forms.Controls;

Styles.AddHandler<ButtonHandler>("mystyle", handler => {
	// this is where you can use handler.Control to set properties, handle events, etc.
	handler.Control.BezelStyle = NSBezelStyle.SmallSquare;
});

StyleProvider

public IStyleProvider StyleProvider { get; set; }
Gets or sets the style provider for this container.
inherited fromContainer
Remarks: The style provider is used to style this container and its children.
The style provider.

Styles

public DefaultStyleProvider Styles { get; }
Gets the default style provider for this container.
inherited fromContainer
Remarks: Use this to apply styles to any child controls of this container. By default, styles will apply to all children, including children of children unless DefaultStyleProvider.Inherit is set to false. Typically, you would set Inherit to false when creating composite controls that already have all their styles applied and you don't want any other styles to be inherited.
The default style provider for this container.

SupportedPlatformCommands

public IEnumerable<string> SupportedPlatformCommands { get; }
Gets the supported platform commands that can be used to hook up system functions to user defined logic
inherited fromControl
Remarks: This lists all available commands that can be mapped using the Control.MapPlatformCommand(string, Command) method of the control.
The supported platform commands.

TabIndex

[DefaultValue(2147483647)] public virtual int TabIndex { get; set; }
Gets or sets the tab index order for this control within its container.
inherited fromControl
Remarks: This sets the order when using the tab key to cycle through controls Note that some platforms (Gtk and WinForms) may not support setting the context of the tab order to StackLayout or DynamicLayout containers and may not behave exactly as expected. Use the PlatformFeatures.TabIndexWithCustomContainers flag to determine if it is supported.
The index of the control in the tab order.

TabStop

[DefaultValue(true)] public virtual bool TabStop { get; set; }
Gets or sets a value indicating whether the user can get to this control using the tab key.
inherited fromControl
Remarks: When false, the control is skipped when cycling through controls with the tab key, but can still be focused by clicking on it or by calling Control.Focus(). This is useful for composite controls where only part of the control should be in the tab order, such as the spinner of a TextStepper or NumericStepper. The tab key only cycles through the controls within a window, so this has no effect for a Window. Note that on Gtk this maps directly to whether the underlying widget can be focused, so it also prevents the control from being focused by clicking on it, and controls that never accept focus (such as a Label) will report false. On iOS and Android this has no effect.
true to include the control in the tab order (the default); false to skip it.

Tag

public object Tag { get; set; }
Gets or sets a user-defined object that contains data about the control
inherited fromControl
Remarks: A common use of the tag property is to store data that is associated with the control that you can later retrieve.

ToolTip

public virtual string ToolTip { get; set; }
Gets or sets the tool tip to show when the mouse is hovered over the control
inherited fromControl

Visible

[DefaultValue(true)] public virtual bool Visible { get; set; }
Gets or sets a value indicating whether this Control is visible to the user.
inherited fromControl
Remarks: When the visibility of a control is set to false, it will not occupy space in the layout.
true if visible; otherwise, false.

VisualChildren

public IEnumerable<Control> VisualChildren { get; }
Gets an enumeration of all contained child controls in the visual tree, including controls within child containers.
inherited fromContainer

VisualControls

public virtual IEnumerable<Control> VisualControls { get; }
Gets an enumeration of controls that are in the visual tree.
inherited fromControl
Remarks: This is used to specify which controls are contained by this instance that are part of the visual tree. This should include all controls including non-logical Eto controls used for layout.
The visual controls.

VisualParent

public Container VisualParent { get; }
Gets the visual container of this control, if any.
inherited fromControl
Remarks: Some containers may use other Eto controls to layout its children, such as the StackLayout. This will return the parent control that visually contains this control as opposed to Control.Parent which will return the logical parent.
The visual parent of this control.

Methods

ApplyStyles

protected override void ApplyStyles(object widget, string style)
Applies the styles to the specified widget up the parent chain.
inherited fromContainer
Remarks: This traverses up the parent chain to apply any cascading styles defined in parent container objects. Call this method on any child widget of a control.
widget (object)Widget to style.
style (string)Style of the widget to apply.

AttachNative

public void AttachNative()
Attaches the control for direct use in a native application
inherited fromControl
Remarks: Use this to use a control directly in a native application. Note that the native application must be running the same framework as the current platform. E.g. a WinForms application can use an Eto.Forms control when using the Eto.WinForms platform. This prepares the control by firing the Control.PreLoad, Control.Load, etc. events.

CaptureMouse

public bool CaptureMouse()
Captures all mouse events to this control.
inherited fromControl
Remarks: This captures all mouse events until Control.ReleaseMouseCapture() is called. Note that not all platforms will allow a mouse capture unless the mouse is currently down.
true if the mouse was captured, false otherwise.

Detach

public void Detach()
Detaches the control by removing it from its parent
inherited fromControl
Remarks: This is essentially a shortcut to myControl.Parent.Remove(myControl);

DetachNative

public void DetachNative()
Detaches the control when it is used in a native application, when you want to reuse the control.
inherited fromControl
Remarks: This should only be called after Control.AttachNative() has been called, which is usually done by calling to ToNative(true).

Dispose

protected override void Dispose(bool disposing)
Handles the disposal of this control
inherited fromControl
disposing (bool)True if the caller called Widget.Dispose() manually, false if being called from a finalizer
Widget.Dispose

DoDragDrop

public virtual void DoDragDrop(DataObject data, DragEffects allowedEffects, Image image, PointF cursorOffset)
Starts drag operation using this control as drag source.
inherited fromControl
Remarks: This method can be blocking on some platforms (Wpf, WinForms), and non-blocking on others (Mac, Gtk). Use the Control.DragEnd event to determine when the drag operation is completed and get its resulting DragEffects.
data (DataObject)Drag data.
allowedEffects (DragEffects)Allowed effects.
image (Image)Custom drag image
cursorOffset (PointF)Offset of the cursor to the drag image

DoDragDrop

public virtual void DoDragDrop(DataObject data, DragEffects allowedEffects)
Starts drag operation using this control as drag source.
inherited fromControl
Remarks: This method can be blocking on some platforms (Wpf, WinForms), and non-blocking on others (Mac, Gtk). Use the Control.DragEnd event to determine when the drag operation is completed and get its resulting DragEffects.
data (DataObject)Drag data.
allowedEffects (DragEffects)Allowed action.

FindChild

public Control FindChild(string id)
Finds a child control in this container or any of its child containers with the specified id.
inherited fromContainer
id (string)Identifier of the control to find that matches the Widget.ID.
The child control if found, or null if not.

FindChild

public Control FindChild(Type type, string id = null)
Finds a child control in this container or any of its child containers with the specified type
inherited fromContainer
type (Type)The type of control to find.
id (string = null)Optional identifier of the control to find that matches the Widget.ID.
The child control if found, or null if not.

FindParent

public Container FindParent(string id)
Finds a control in the parent hierarchy with the specified id
inherited fromControl
id (string)Identifier of the parent control to find.
The parent if found, or null if not found.

FindParent

public Container FindParent(Type type, string id = null)
Finds a control in the parent hierarchy with the specified type and Widget.ID if specified
inherited fromControl
type (Type)The type of control to find.
id (string = null)Identifier of the parent control to find, or null to find by type only.
The parent if found, or null if not found.

Focus

public virtual void Focus()
Attempts to set the keyboard input focus to this control, or the first child that accepts focus. For Windows, this will bring it to front and activate it.
inherited fromControl

GetCallback

#
protected override object GetCallback()
Gets an instance of an object used to perform callbacks to the widget from handler implementations

GetPreferredSize

public SizeF GetPreferredSize()
Gets the preferred size of this control given infinite space available.
inherited fromControl

GetPreferredSize

public SizeF GetPreferredSize(SizeF availableSize)
Gets the preferred size of this control given the specified availableSize.
inherited fromControl
availableSize (SizeF)The available size to determine the preferred size
The preferred size this control would like to be, which can be larger than the specified availableSize.

Initialize

protected void Initialize()
Initializes the widget handler
inherited fromWidget
Remarks: This is typically called from the constructor after all of the logic is completed to construct the object. If your handler interface has the AutoInitializeAttribute set to false, then you are responsible for calling this method in your constructor after calling the creation method on your custom handler.

Invalidate

public void Invalidate()
Queues a repaint of the entire control on the screen and any of its children.
inherited fromControl

Invalidate

public void Invalidate(bool invalidateChildren)
Queues a repaint of the entire control on the screen
inherited fromControl
Remarks: This is only useful when the control is visible.
invalidateChildren (bool)True to invalidate all children, false to only invalidate the container

Invalidate

public void Invalidate(Rectangle rect, bool invalidateChildren)
Queues a repaint of the specified rect of the control
inherited fromControl
Remarks: This is only useful when the control is visible.
rect (Rectangle)Rectangle to repaint
invalidateChildren (bool)True to invalidate all children, false to only invalidate the container

Invalidate

public void Invalidate(Rectangle rect)
Queues a repaint of the specified rect of the control and any children.
inherited fromControl
Remarks: This is only useful when the control is visible.
rect (Rectangle)Rectangle to repaint

MapPlatformCommand

public void MapPlatformCommand(string systemCommand, Command command)
Specifies a command to execute for a platform-specific command
inherited fromControl
Remarks: Some platforms have specific system-defined commands that can be associated with a control. For example, the Mac platform's cut/copy/paste functionality is defined by the system, and if you want to hook into it, you can use this to map it to your own defined logic. The valid values of the systemCommand parameter are defined by each platform, and a list can be retrieved using Control.SupportedPlatformCommands
systemCommand (string)System command
command (Command)Command to execute, or null to restore to the default behavior
This example shows how to extend a control with cut/copy/paste for the mac platform:
var drawable = new Drawable();
if (drawable.Generator.IsMac)
{
	drawable.MapPlatformCommand("cut", new MyCutCommand());
	drawable.MapPlatformCommand("copy", new MyCopyCommand());
	drawable.MapPlatformCommand("paste", new MyPasteCommand());
}

OnApplyCascadingStyles

protected virtual void OnApplyCascadingStyles()
Called when cascading styles should be applied to this control.
inherited fromControl
Remarks: You don't typically have to call this directly, but override it to apply styles to any child item(s) that may need styling at the same time. This is automatically done for any Container based control and its child controls.

OnDataContextChanged

protected virtual void OnDataContextChanged(EventArgs e)
inherited fromBindableWidget
Remarks: Implementors may override this to fire this event on child widgets in a heirarchy. Alternatively, implement IBindableWidgetContainer for your widget and this will trigger any events on the children automatically. This allows a control to be bound to its own BindableWidget.DataContext, which would be set on one of the parent control(s).
e (EventArgs)Event arguments

OnLoad

protected override void OnLoad(EventArgs e)
Raises the Control.Load event, and recurses to this container's children
inherited fromContainer

OnLoadComplete

protected override void OnLoadComplete(EventArgs e)
Raises the Control.LoadComplete event, and recurses to this container's children
inherited fromContainer

OnMouseDown

protected virtual void OnMouseDown(MouseEventArgs e)
Raises the Control.MouseDown event.
inherited fromControl
Remarks: To override default behaviour of the control, set MouseEventArgs.Handled property to true.
e (MouseEventArgs)Event arguments

OnPreLoad

protected override void OnPreLoad(EventArgs e)
Raises the Control.PreLoad event, and recurses to this container's children
inherited fromContainer

OnStyleChanged

protected override void OnStyleChanged(EventArgs e)
Handles when the Style is changed.
inherited fromContainer
Remarks: This applies the cascading styles to the control and any of its children.
e (EventArgs)

OnUnLoad

protected override void OnUnLoad(EventArgs e)
Raises the Control.UnLoad event, and recurses to this container's children
inherited fromContainer

PointFromScreen

public PointF PointFromScreen(PointF point)
Converts a point from screen space to control space.
inherited fromControl

PointToScreen

public PointF PointToScreen(PointF point)
Converts a point from control space to screen space
inherited fromControl

Push

#
public void Push(Control content, string title = null)
Pushes a new pane onto the navigation stack with the specified content and title.

Push

#
public void Push(INavigationItem item)
Pushes a new navigation item onto the stack.

RectangleFromScreen

public RectangleF RectangleFromScreen(RectangleF rect)
Converts a rectangle from screen space to control space.
inherited fromControl
rect (RectangleF)Rectangle in screen space
The rectangle in control space

RectangleToScreen

public RectangleF RectangleToScreen(RectangleF rect)
Converts a rectangle from control space to screen space
inherited fromControl
rect (RectangleF)Rectangle in control space
The rectangle in screen space

Remove

#
public override void Remove(Control child)
Removes the specified child.

Remove

public virtual void Remove(IEnumerable<Control> controls)
Remove the specified controls from this container
inherited fromContainer

RemoveLogicalParent

protected void RemoveLogicalParent(Control child)
Removes the child control from the logical parent of this container.
inherited fromContainer
Remarks: This should be used from containers that use other Eto controls to layout its children but should not be part of the logical heirarchy.
child (Control)Child to remove from this container as the logical parent.

RemoveParent

protected void RemoveParent(Control child)
Removes the specified control from the container.
inherited fromContainer
Remarks: This should only be called on controls that the container owns. Otherwise, call Control.Detach()
child (Control)Child to remove from this container

ResumeLayout

public virtual void ResumeLayout()
Resumes the layout after it has been suspended, and performs a layout
inherited fromControl
Remarks: This can be used to optimize some platforms while adding, removing, or changing many child controls at once. Each call to ResumeLayout() must be balanced with a call to Control.SuspendLayout() before it.

SetLogicalParent

protected void SetLogicalParent(Control child)
Sets the logical (non-visual) parent of the specified child control.
inherited fromContainer
Remarks: This is used by layout containers that may use other Eto controls to layout its children that shouldn't be necessary for users to be concerned about. For example, the StackLayout uses a TableLayout internally (for now), but the TableLayout should not be part of the logical tree of controls. If this is not set, then the logical parent of a child is the same as the visual parent.
child (Control)Child to set the logical parent to this container.

SetParent

protected void SetParent(Control child, Action assign = null, Control previousChild = null)
Sets the parent of the specified child to this container
inherited fromContainer
Remarks: This is used by container authors to set the parent of a child before it is added to the underlying platform control. The assign parameter should call the handler method to add the child to the parent.
child (Control)Child to set the parent
assign (Action = null)Method to assign the child to the handler
previousChild (Control = null)Previous child that the new child is replacing.
true, if parent was set, false otherwise.

SuspendLayout

public virtual void SuspendLayout()
Suspends the layout of child controls
inherited fromControl
Remarks: This can be used to optimize some platforms while adding, removing, or changing many child controls at once. It disables the calculation of control positioning until Control.ResumeLayout() is called. Each call to SuspendLayout() must be balanced with a call to Control.ResumeLayout().

ToString

public override string ToString()
Gets a string that represents the current object with its ID if specified.
inherited fromWidget
A string value indicating the type and ID (if specified) of this widget.
Object.ToString

TriggerStyleChanged

public void TriggerStyleChanged()
Triggers the StyleChanged event and re-applies the styles to this control and its children.
inherited fromControl

Unbind

public virtual void Unbind()
Unbinds any bindings in the BindableWidget.Bindings collection and removes the bindings
inherited fromBindableWidget

UpdateBindings

public virtual void UpdateBindings(BindingUpdateMode mode = BindingUpdateMode.Source)
Updates all bindings in this widget
inherited fromBindableWidget
Remarks: When you implement IBindableWidgetContainer, this will also update bindings for all of its children.
mode (BindingUpdateMode = BindingUpdateMode.Source)

UpdateLayout

public void UpdateLayout()
Updates the layout of this control if necessary.
inherited fromControl
Remarks: This will ensure the control has had all of its layout applied so you can use its position and size right after this call. Most platforms (except WinForms) use a deferred layout system so that after adding your control to the form dynamically it won't get laid out until the next idle loop. This is useful when you need to know the dimensions of the control immediately. Note that this can be an expensive operation, so it is recommended to only call this method when necessary and after all of the controls have been added/updated.

Events

DataContextChanged

public event EventHandler<EventArgs> DataContextChanged
Event to handle when the BindableWidget.DataContext has changed
inherited fromBindableWidget
Remarks: This may be fired in the event of a parent in the hierarchy setting the data context. For example, the Container widget fires this event when it's event is fired.
DataContextChanged

DragDrop

public event EventHandler<DragEventArgs> DragDrop
Occurs when a drag operation is dropped onto the control.
inherited fromControl
Remarks: This should perform any of the actual drop logic and update the control state to reflect the dropped data. Any cleanup should be performed in the Control.DragLeave event, which is called immediately before this event.

DragEnd

public event EventHandler<DragEventArgs> DragEnd
Occurs for a source control after a call to Control.DoDragDrop(DataObject, DragEffects, Image, PointF) when the drag operation has ended. The DragEventArgs.Effects is the final DragEffects used at the drop destination.
inherited fromControl
Remarks: For controls that you are dragging from this event is useful to know what to do with the dragged content after it is dropped in a different control or application.

DragLeave

public event EventHandler<DragEventArgs> DragLeave
Occurs when a drag operation leaves the bounds of the control or the drag operation was completed inside the control.
inherited fromControl
Remarks: Use this event to 'clean up' any state of the control for the current drag operation. This will be called before the Control.DragDrop event.

DragOver

public event EventHandler<DragEventArgs> DragOver
Occurs when a drag operation is over the control and needs updating based on position or keyboard state changes.
inherited fromControl

GotFocus

public event EventHandler<EventArgs> GotFocus
Occurs when the control receives keyboard focus.
inherited fromControl

ItemRemoved

#
public event EventHandler<NavigationItemEventArgs> ItemRemoved
Event to handle when an item is removed from the navigation stack, either by the user or by code.

Load

public event EventHandler<EventArgs> Load
Occurs when the control is displayed on a visible window
inherited fromControl
Remarks: A control is loaded when it is part of the control hierarchy and is shown on a window. When the control is removed from the hierarchy, or the window is closed, the Control.UnLoad event will be called.

LoadComplete

public event EventHandler<EventArgs> LoadComplete
Occurs when the load is complete, which happens after the Control.Load event and before the window/control is shown.
inherited fromControl

LostFocus

public event EventHandler<EventArgs> LostFocus
Occurs when control loses keyboard focus
inherited fromControl

MouseDoubleClick

public event EventHandler<MouseEventArgs> MouseDoubleClick
Occurs when a mouse button is double clicked within the bounds of the control
inherited fromControl
Remarks: If you do not set the MouseEventArgs.Handled property to true, and the default behaviour of the control does not accept double clicks, the Control.MouseDown event will be called for each click of the mouse button. For example, if the user clicks twice in succession, the following will be called:
  1. MouseDown for the first click
  2. MouseDoubleClick for the second click
  3. If Handled has not been set in #2, MouseDown will be called a 2nd time
MouseDoubleClick

MouseDown

public event EventHandler<MouseEventArgs> MouseDown
Occurs when a mouse button has been pressed
inherited fromControl
Remarks: Controls will typically capture the mouse after a mouse button is pressed and will be released only after the Control.MouseUp event.
MouseDown
Control.MouseUp

MouseMove

public event EventHandler<MouseEventArgs> MouseMove
Occurs when mouse moves within the bounds of the control, or when the mouse is captured
inherited fromControl
Remarks: The mouse is captured after a Control.MouseDown event within the control, and is released when the mouse button is released
MouseMove

Shown

public event EventHandler<EventArgs> Shown
Occurs when the control is shown on the screen
inherited fromControl
Remarks: This event fires when the Control.Visible property changes, or when initially showing a control on a form.

TextInput

public event EventHandler<TextInputEventArgs> TextInput
Occurs when text is input for the control. Currently only partially supported on iOS.
inherited fromControl

ThemeChanged

public event EventHandler<EventArgs> ThemeChanged
Occurs when the control's theme changes either due to a system theme change or when Application.Instance.CurrentTheme is set.
inherited fromControl

UnLoad

public event EventHandler<EventArgs> UnLoad
Occurs when the control is unloaded, which happens when removed from the control hierarchy or the window is closed.
inherited fromControl