Class PluginControl
- Namespace
- SharpConsoleUI.Plugins
- Assembly
- SharpConsoleUI.dll
A control factory contribution from a plugin
public record PluginControl : IEquatable<PluginControl>
- Inheritance
-
PluginControl
- Implements
- Inherited Members
Constructors
PluginControl(string, Func<IWindowControl>)
A control factory contribution from a plugin
public PluginControl(string Name, Func<IWindowControl> Factory)
Parameters
NamestringThe unique name for the control
FactoryFunc<IWindowControl>A factory function that creates control instances
Properties
Factory
A factory function that creates control instances
public Func<IWindowControl> Factory { get; init; }
Property Value
Name
The unique name for the control
public string Name { get; init; }