Show / Hide Table of Contents

Class DisplayTab

Simple implementation of IDisplayTab interface which may be used as POCO for DisplayTabs.

Inheritance
System.Object
DisplayTab
Implements
IDisplayTab
Namespace: Eco.Core.Plugins
Assembly: Eco.Core.dll
Syntax
public class DisplayTab : Object, IDisplayTab

Constructors

DisplayTab(LocString, Func<String>, Action<Boolean>)

Declaration
public DisplayTab(LocString displayTitle, Func<string> displayTextGenerator, Action<bool> onDisplayTabVisibilityChange = null)
Parameters
Type Name Description
LocString displayTitle
System.Func<System.String> displayTextGenerator
System.Action<System.Boolean> onDisplayTabVisibilityChange

Methods

GetDisplayText()

Returns current content of UI tab.

Declaration
public string GetDisplayText()
Returns
Type Description
System.String

GetDisplayTitle()

Returns title which will be used as UI tab title.

Declaration
public string GetDisplayTitle()
Returns
Type Description
System.String

OnDisplayTabVisibilityChange(Boolean)

Callback to be called when tab become visible or hidden.

Declaration
public void OnDisplayTabVisibilityChange(bool show)
Parameters
Type Name Description
System.Boolean show

Implements

IDisplayTab

Extension Methods

PropertyChanges.FirePropertyChanged(Object, String)
PropertyChanges.FirePropertyChanged(Object, String, Object, Object)
PropertyChanges.FirePropertyChanged(Object, MemberChangedBeforeAfterEventArgs)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾