BindableWidgetParent Property |
Gets or sets the parent widget which this widget has been added to, if any
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public Widget Parent { get; protected set; }
Public Property Parent As Widget
Get
Protected Set
member Parent : Widget with get, set
Property Value
Type:
WidgetThe parent widget, or null if there is no parent
Remarks
When implementing child widgets that can participate in the context based binding (MVVM),
You can set this to the parent widget when it is added or removed to it (usually via a collection).
Note that you should typically provide a
public new [ParentWidget] Parent { get; }
property
so that consumers of your API cannot set the parent to an invalid value.
See Also