Table of Contents

Class RDFormsControl

Namespace
RDCore.Forms.Avalonia.Controls
Assembly
RDCore.Forms.Avalonia.dll

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

control Control

The 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

control Control

The 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

control Control

The 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

control Control

The control, usually a form's window.

sink IComponentEventSink

The sink.

SetInstance(Control, ComponentInstance?)

Sets the component a control shows.

public static void SetInstance(Control control, ComponentInstance? instance)

Parameters

control Control

The control.

instance ComponentInstance

The 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

control Control

The control, usually a form's window.

clock TimeProvider

The clock, or null for System.