Interface IModernShell
Provides methods to interact with the Colectica desktop application.
Namespace: Algenta.Colectica.ViewModel
Assembly: Algenta.Colectica.ViewModel.dll
Syntax
public interface IModernShell
Properties
Client
Gets the RepositoryClientBase from which the active item was retrieved.
Declaration
RepositoryClientBase Client { get; }
Property Value
Type | Description |
---|---|
RepositoryClientBase |
CurrentNode
Gets the navigator Node currently displayed in the main item view.
Declaration
Node CurrentNode { get; }
Property Value
Type | Description |
---|---|
Node |
Methods
NavigateTo(Node, Object, Boolean, Boolean)
Displays an item in the main content view.
Declaration
void NavigateTo(Node node, object vm, bool requiresBreadcrumb = true, bool requiresSave = false)
Parameters
Type | Name | Description |
---|---|---|
Node | node | The navigator node of the item to be displayed. |
System.Object | vm | The item to be displayed. A DataTemplate should exist for the item's type. |
System.Boolean | requiresBreadcrumb | if set to |
System.Boolean | requiresSave | if set to |
NavigateToItem(RepositoryItemMetadata)
Retrieves an IVersionable item using the current Client, and displays the item.
Declaration
void NavigateToItem(RepositoryItemMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
RepositoryItemMetadata | metadata | An item description containing the identification of the item to be retrieved and displayed. |
ShowFlyout(IFlyout)
Displays a flyout view.
Declaration
void ShowFlyout(IFlyout vm)
Parameters
Type | Name | Description |
---|---|---|
IFlyout | vm | The flyout to be displayed. |