Class LayoutGroup<T>
Provides a base class for layout anchorable (group and non-group) related classes that implement the viewmodel aspect for layout anchorable controls.
[Serializable]
public abstract class LayoutGroup<T> : LayoutGroupBase, ILayoutGroup, ILayoutContainer, ILayoutElement, INotifyPropertyChanged, INotifyPropertyChanging, IXmlSerializable where T : class, ILayoutElement
Type Parameters
T
- Inheritance
-
LayoutGroup<T>
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
Children
Gets a collection of children objects below this object.
public ObservableCollection<T> Children { get; }
Property Value
ChildrenCount
Gets the number of of children objects below this object.
public int ChildrenCount { get; }
Property Value
IsVisible
Gets whether this object is visible or not.
public bool IsVisible { get; protected set; }
Property Value
Methods
ChildMoved(int, int)
protected virtual void ChildMoved(int oldIndex, int newIndex)
Parameters
ComputeVisibility()
Interface definition for a layout element that can update its visibility (IsVisible) property.
public void ComputeVisibility()
GetVisibility()
protected abstract bool GetVisibility()
Returns
IndexOfChild(ILayoutElement)
Interface definition for a group of layout elements that can act as a container.
public int IndexOfChild(ILayoutElement element)
Parameters
elementILayoutElement
Returns
InsertChildAt(int, ILayoutElement)
Interface definition for a group of layout elements that can act as a container.
public void InsertChildAt(int index, ILayoutElement element)
Parameters
indexintelementILayoutElement
MoveChild(int, int)
Defines an API to layout model that can manipluate its child entries by moving them from one index to the other or by removing a particular child from its child collection.
public void MoveChild(int oldIndex, int newIndex)
Parameters
OnIsVisibleChanged()
protected virtual void OnIsVisibleChanged()
OnParentChanged(ILayoutContainer, ILayoutContainer)
Provides derived classes an opportunity to handle changes to the Parent property.
protected override void OnParentChanged(ILayoutContainer oldValue, ILayoutContainer newValue)
Parameters
oldValueILayoutContainernewValueILayoutContainer
ReadXml(XmlReader)
provides a standard overridable implementation for deriving classes.
public virtual void ReadXml(XmlReader reader)
Parameters
readerXmlReader
RemoveChild(ILayoutElement)
Defines an interface that is implemented by a layout model that can contain other LayoutElements (LayoutGroup<T>, LayoutPane etc).
public void RemoveChild(ILayoutElement element)
Parameters
elementILayoutElement
RemoveChildAt(int)
Interface definition for a group of layout elements that can act as a container.
public void RemoveChildAt(int childIndex)
Parameters
childIndexint
ReplaceChild(ILayoutElement, ILayoutElement)
Defines an interface that is implemented by a layout model that can contain other LayoutElements (LayoutGroup<T>, LayoutPane etc).
public void ReplaceChild(ILayoutElement oldElement, ILayoutElement newElement)
Parameters
oldElementILayoutElementnewElementILayoutElement
ReplaceChildAt(int, ILayoutElement)
Interface definition for a group of layout elements that can act as a container.
public void ReplaceChildAt(int index, ILayoutElement element)
Parameters
indexintelementILayoutElement
WriteXml(XmlWriter)
provides a standard overridable implementation for deriving classes.
public virtual void WriteXml(XmlWriter writer)
Parameters
writerXmlWriter