Class RDFormsControl
The component an Avalonia control shows, and the sink its events go to.
public static class RDFormsControl
- Inheritance
-
RDFormsControl
- Inherited Members
Remarks
Every control of this namespace is given its component when it is created. The sink is inherited: set on a form's window, it reaches every control on the form. A control with no sink raises nothing, which is how a form shows in a designer's preview.
Fields
EventSinkProperty
The sink a control's events go to, inherited from the control's ancestors.
public static readonly AttachedProperty<IComponentEventSink?> EventSinkProperty
Field Value
- AttachedProperty<IComponentEventSink>
InstanceProperty
The component a control shows.
public static readonly AttachedProperty<ComponentInstance?> InstanceProperty
Field Value
- AttachedProperty<ComponentInstance>
TimeProviderProperty
The clock a Timer counts its interval on, inherited from the control's ancestors.
public static readonly AttachedProperty<TimeProvider?> TimeProviderProperty
Field Value
- AttachedProperty<TimeProvider>
Methods
GetEventSink(Control)
Gets the sink a control's events go to.
public static IComponentEventSink? GetEventSink(Control control)
Parameters
controlControlThe control.
Returns
- IComponentEventSink
The sink, or null where the control and its ancestors have none.
GetInstance(Control)
Gets the component a control shows.
public static ComponentInstance? GetInstance(Control control)
Parameters
controlControlThe control.
Returns
- ComponentInstance
The component, or null where the control shows none.
GetTimeProvider(Control)
Gets the clock a Timer on a control counts its interval on.
public static TimeProvider GetTimeProvider(Control control)
Parameters
controlControlThe control.
Returns
- TimeProvider
The clock set on the control or its ancestors, or System where none is set.
SetEventSink(Control, IComponentEventSink?)
Sets the sink the events of a control and of the controls it holds go to.
public static void SetEventSink(Control control, IComponentEventSink? sink)
Parameters
controlControlThe control, usually a form's window.
sinkIComponentEventSinkThe sink.
SetInstance(Control, ComponentInstance?)
Sets the component a control shows.
public static void SetInstance(Control control, ComponentInstance? instance)
Parameters
controlControlThe control.
instanceComponentInstanceThe component.
SetTimeProvider(Control, TimeProvider?)
Sets the clock the Timers on a control and on the controls it holds count their intervals on.
public static void SetTimeProvider(Control control, TimeProvider? clock)
Parameters
controlControlThe control, usually a form's window.
clockTimeProvider