Table of Contents

Class RDFormsControls

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

Makes the Avalonia control that shows a component.

public static class RDFormsControls
Inheritance
RDFormsControls
Inherited Members

Methods

Create(ComponentInstance)

Makes the control that shows a component of one of RDForms' control classes, or a placed UserControl: a RDFormsUserControl.

public static Control? Create(ComponentInstance instance)

Parameters

instance ComponentInstance

The component.

Returns

Control

The control, or null where its class has none: a menu, a form's root, a UserControl that is invisible at run time, and a class that is neither one of ComponentClasses nor one Of(FormDefinition, string, IReadOnlyList<EventDefinition>?) made.

Remarks

A DriveListBox, a DirListBox and a FileListBox show the machine's file system, from the process's current directory.

Exceptions

ArgumentNullException

instance is null.

Create(ComponentInstance, IFileSystem)

Makes the control that shows a component of one of RDForms' control classes, or a placed UserControl, with the file system its file system lists show.

public static Control? Create(ComponentInstance instance, IFileSystem fileSystem)

Parameters

instance ComponentInstance

The component.

fileSystem IFileSystem

The file system a DriveListBox, a DirListBox and a FileListBox show, from its current directory, those of a placed UserControl included.

Returns

Control

The control, or null where its class has none: a menu, a form's root, a UserControl that is invisible at run time, and a class that is neither one of ComponentClasses nor one Of(FormDefinition, string, IReadOnlyList<EventDefinition>?) made.

Exceptions

ArgumentNullException

instance or fileSystem is null.