Class EntityTabOrSelectedItemView
A standard tool window comtroller that displays a view prompting the user to use the toggle command to switch between displaying the main item of the selected layout, or the grid selections on the selected layout
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Controllers.ToolWindows
Assembly: LemonEdge.ClientCore.dll
Syntax
public class EntityTabOrSelectedItemView : ModelToolWindowController, IModelViewController, IHasToggleStatus, IDisposable
Constructors
EntityTabOrSelectedItemView(IModelView)
Creates a new EntityTabOrSelectedItemView
Declaration
public EntityTabOrSelectedItemView(IModelView view)
Parameters
Type | Name | Description |
---|---|---|
IModelView | view | The view implementation using UI components to show a message telling the user they can toggle between the two modes for displaying data on this tool window |
Properties
ContextHelpURL
The help url for this view, default - https://help.lemonedge.com/help/common/tool-windows/selection-view.html
Declaration
public override string ContextHelpURL { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
TrackViewSelectedItems
True - Indicates this view has a command that means it displays the main item of the layout this toolwindow is against, or the selected item of a grid in the layout this toolwindow is against. If the latter it updates as the user changes grid selection immediately.
This item is then available to the SelectedItemForSubViews ensuring sub views can be created in a toolwindow layout to this view that react to the same entity selection i nthe target layout
Declaration
protected override bool TrackViewSelectedItems { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
DisplayToolWindow(object)
Displays the item this tool window is working against - either them main layout item, or the selected item of a grid within it
Declaration
public override Task DisplayToolWindow(object item)
Parameters
Type | Name | Description |
---|---|---|
object | item | The item to display |
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |
Overrides
ViewSelectedItemsUpdate(bool)
Updates the UI to indicate what is being selected
Declaration
public override void ViewSelectedItemsUpdate(bool viewingSelectedItem)
Parameters
Type | Name | Description |
---|---|---|
bool | viewingSelectedItem |