Class RDFormsControls
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
instanceComponentInstanceThe 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
instanceis 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
instanceComponentInstanceThe component.
fileSystemIFileSystemThe 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
instanceorfileSystemis null.