Interface IVersionableView
Provides an extension point which Addins can use to provide additional views for IVersionable items. These Addins are displayed as an additional tab in the main item view, or in the Annotations tab, depending on the IsInCustomFieldsTab property.
Namespace: Algenta.Colectica.ViewModel
Assembly: Algenta.Colectica.ViewModel.dll
Syntax
public interface IVersionableView
Remarks
Classes implementing this interface should be derived from a WPF Control or UserControl.
Properties
ApplicableItemTypes
Gets a list of item types for which this Addin should be displayed.
Declaration
Collection<Guid> ApplicableItemTypes { get; }
Property Value
| Type | Description |
|---|---|
| Collection<Guid> |
IsInCustomFieldsTab
Gets a value indicating whether this Addin view should be displayed in its own tab, or in the Annotations tab. If true, the Addin view will be displayed in the Annotations tab; otherwise, it will be displayed in its own tab with the header determined by the Title property.
Declaration
bool IsInCustomFieldsTab { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Title
Gets the title of the Addin.
Declaration
string Title { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Weight
Gets the order in which this Addin should be displayed. Lower values are displayed higher or further to the left.
Declaration
int Weight { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
Initialize(Node, IVersionable)
Initializes the view when an item is loaded in the user interface.
Declaration
void Initialize(Node node, IVersionable item)
Parameters
| Type | Name | Description |
|---|---|---|
| Node | node | The node. |
| IVersionable | item | The item. |
OnActivated()
Allows the Addin to take actions when the user activates the tab containing this Addin view.
Declaration
void OnActivated()