Class NoOpUiRegistry
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
The UI registry a host that draws nothing hands out: registrations are
accepted and discarded, and every query answers false.
public sealed class NoOpUiRegistry : IScopedUiRegistry, IUiRegistry
- Inheritance
-
NoOpUiRegistry
- Implements
- Inherited Members
Properties
Instance
The shared instance; this type holds no state.
public static NoOpUiRegistry Instance { get; }
Property Value
Methods
AddMarkupPanel(string, object)
public void AddMarkupPanel(string markupPath, object binding)
Parameters
markupPathstringAbsolute path to the plugin's panel markup file.
bindingobjectObject whose properties the markup's {Bindings} resolve against.
AddPanel(PluginPanelDescriptor, string, object)
Registers a window for the plugin's lifetime, with a descriptor giving its id, title and shelf button.
public void AddPanel(PluginPanelDescriptor descriptor, string markupPath, object binding)
Parameters
descriptorPluginPanelDescriptorHow the window is identified and presented.
markupPathstringAbsolute path to the plugin's panel markup file.
bindingobjectObject whose properties the markup's {Bindings} resolve against.
HideClientWindow(PluginClientWindow)
Hides one of the client's own windows. Returns whether the host recognized it.
public bool HideClientWindow(PluginClientWindow window)
Parameters
windowPluginClientWindow
Returns
IsClientWindowVisible(PluginClientWindow)
Whether one of the client's own windows is currently visible.
public bool IsClientWindowVisible(PluginClientWindow window)
Parameters
windowPluginClientWindow
Returns
RegisterMarkupPanel(string, object)
Registers a window from a markup file and returns a token that removes it again.
public IDisposable RegisterMarkupPanel(string markupPath, object binding)
Parameters
Returns
RegisterPanel(PluginPanelDescriptor, string, object)
Registers a window whose lifetime may be ended independently while the plugin keeps running. Disposing the token removes the retained window and its sidepanel entry.
public IDisposable RegisterPanel(PluginPanelDescriptor descriptor, string markupPath, object binding)
Parameters
descriptorPluginPanelDescriptormarkupPathstringbindingobject
Returns
RegisterPanel(PluginUiOwner, PluginPanelDescriptor, string, object)
Registers a window from a markup file on behalf of one plugin.
public IDisposable RegisterPanel(PluginUiOwner owner, PluginPanelDescriptor descriptor, string markupPath, object binding)
Parameters
ownerPluginUiOwnerdescriptorPluginPanelDescriptormarkupPathstringbindingobject
Returns
RegisterPanelContent(PluginPanelDescriptor, string, object)
Same as RegisterPanel(PluginPanelDescriptor, string, object), but the markup is passed as text instead of read from a file.
public IDisposable RegisterPanelContent(PluginPanelDescriptor descriptor, string markupContent, object binding)
Parameters
descriptorPluginPanelDescriptorHow the window is identified and presented.
markupContentstringThe panel markup itself.
bindingobjectObject whose properties the markup's {Bindings} resolve against.
Returns
RegisterPanelContent(PluginUiOwner, PluginPanelDescriptor, string, object)
Host-owned registration for in-memory plugin markup.
public IDisposable RegisterPanelContent(PluginUiOwner owner, PluginPanelDescriptor descriptor, string markupContent, object binding)
Parameters
ownerPluginUiOwnerdescriptorPluginPanelDescriptormarkupContentstringbindingobject
Returns
ShowClientWindow(PluginClientWindow)
Shows one of the client's own windows. Returns whether it is now visible.
public bool ShowClientWindow(PluginClientWindow window)
Parameters
windowPluginClientWindow
Returns
ToggleClientWindow(PluginClientWindow)
Shows one of the client's own windows if it is hidden, hides it if
shown. Returns whether the window ended up visible; a no-window host
or a window this build does not mount always returns false.
public bool ToggleClientWindow(PluginClientWindow window)
Parameters
windowPluginClientWindow