Class Tab
Represents a tab in a Form.
Implements
Inherited Members
Namespace: TimeCockpit.Data.DataModel.View
Assembly: TimeCockpit.Data.dll
Syntax
public class Tab : NamedDynamicObject, IDynamicMetaObjectProvider, INotifyPropertyChanged
Constructors
Tab()
Initializes a new instance of the Tab class.
Declaration
public Tab()
Properties
Header
Gets or sets the header of the tab.
Declaration
public string Header { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Sections
Gets a list of sections in the tab.
Declaration
public ObservableCollection<Section> Sections { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<Section> |
VerticalTabOrder
Gets or sets a value indicating whether to use vertical tab order instead of the default horizontal tab order. If this value is not set, the tab order of the parenting form is used.
Declaration
public bool? VerticalTabOrder { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Methods
InitializeObject()
Initializes the Form object setting fields of the object to their default values.
Declaration
protected void InitializeObject()
SectionChanged(Object, PropertyChangedEventArgs)
Event handler for the SectionChanged(Object, PropertyChangedEventArgs) event. If a tab is changed in the Sections collection, we fire the PropertyChanged event for Sections
Declaration
protected void SectionChanged(object sender, PropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | Object sending the event (currently not used) |
System.ComponentModel.PropertyChangedEventArgs | e | Event arguments. |
SectionsChanged(Object, NotifyCollectionChangedEventArgs)
Raised, when an item is added to the Sections collection.
Declaration
protected virtual void SectionsChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender that fired the event |
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | Provides information about event arguments |