Class Tab
- Namespace
- TimeCockpit.Data.DataModel.View
- Assembly
- TimeCockpit.Data.dll
Represents a tab in a Form.
public class Tab : NamedDynamicObject, IDynamicMetaObjectProvider, INotifyPropertyChanged
- Inheritance
-
ObjectTab
- Implements
-
IDynamicMetaObjectProviderINotifyPropertyChanged
- Derived
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
Tab()
Initializes a new instance of the Tab class.
public Tab()
Properties
Header
Gets or sets the header of the tab.
public string Header { get; set; }
Property Value
- String
Sections
Gets a list of sections in the tab.
public ObservableCollection<Section> Sections { get; }
Property Value
- 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.
public bool? VerticalTabOrder { get; set; }
Property Value
- Nullable<Boolean>
Methods
InitializeObject()
Initializes the Form object setting fields of the object to their default values.
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
protected void SectionChanged(object sender, PropertyChangedEventArgs e)
Parameters
senderObjectObject sending the event (currently not used)
ePropertyChangedEventArgsEvent arguments.
SectionsChanged(Object, NotifyCollectionChangedEventArgs)
Raised, when an item is added to the Sections collection.
protected virtual void SectionsChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
senderObjectThe sender that fired the event
eNotifyCollectionChangedEventArgsProvides information about event arguments