Loading files
using System;
using System.Windows.Controls;
using System.Windows.Markup;
namespace IDE.Controls.WPF.Docking.Layout;
[ContentProperty("Children")]
[Serializable]
public class LayoutDocumentPaneGroup : LayoutPositionableGroup<ILayoutDocumentPane>, ILayoutDocumentPane, ILayoutOrientableGroup
{
#region Constructors
public LayoutDocumentPaneGroup()
{
}
public LayoutDocumentPaneGroup(LayoutDocumentPane documentPane)
{
Children.Add(documentPane);
}
#endregion
#region Properties
#region Orientation
private Orientation _orientation;
public Orientation Orientation
{
get
{
return _orientation;
}
set
{
if (_orientation != value)
{
RaisePropertyChanging("Orientation");
_orientation = value;
RaisePropertyChanged("Orientation");
}
}
}
#endregion
#endregion
#region Overrides
protected override bool GetVisibility()
{
return true;
}
public override void WriteXml(System.Xml.XmlWriter writer)
{
writer.WriteAttributeString("Orientation", Orientation.ToString());
base.WriteXml(writer);
}
public override void ReadXml(System.Xml.XmlReader reader)
{
if (reader.MoveToAttribute("Orientation"))
Orientation = (Orientation)Enum.Parse(typeof(Orientation), reader.Value, true);
base.ReadXml(reader);
}
#if TRACE
public override void ConsoleDump(int tab)
{
System.Diagnostics.Trace.Write(new string(' ', tab * 4));
System.Diagnostics.Trace.WriteLine(string.Format("DocumentPaneGroup({0})", Orientation));
foreach (LayoutElement child in Children)
child.ConsoleDump(tab + 1);
}
#endif
#endregion
}
797882a6aThis file is pinned to the selected release. Download the original to open it in your design tool.