Table of Contents

Class ExtensionServer

Namespace
Alternet.FormDesigner.Wpf
Assembly
Alternet.FormDesigner.Wpf.v10.dll

An ExtensionServer manages a creating and removing extensions of the specific extension type. For a given DesignContext, a ExtensionServer is created only once. The ExtensionServer can handle events raised by services without having to unregister its events handlers because the ExtensionServer runs for the lifetime of the DesignContext.

public abstract class ExtensionServer
Inheritance
ExtensionServer
Derived

Properties

Context

Gets the context this extension server was created for.

Services

Gets the service container of the current context. "x.Services" is equivalent to "x.Context.Services".

Methods

CreateExtension(Type, DesignItem)

Create an extension of the specified type. Is called by the ExtensionManager.

OnInitialized()

Is called after the extension server is initialized and the Context property has been set.

RemoveExtension(Extension)

This method is called before an extension is removed from its DesignItem because it should not be applied anymore. Is called by the ExtensionManager.

ShouldApplyExtensions(DesignItem)

Gets if the extension manager should apply the extensions from this server to the specified item. Is called by the ExtensionManager.

ShouldBeReApplied()

Returns if the Extension Server should be reapplied (for multiple selection extension server for example).

Events

ShouldApplyExtensionsInvalidated

This event is raised when ShouldApplyExtensions is invalidated for a set of items.