}
#endregion
+ #region GraphicObject Overrides
+ public override bool ArrangeChildren { get { return true; } }
public override void ChildrenLayoutingConstraints (ref LayoutingType layoutType)
{
//Prevent child repositionning in the direction of stacking
else
layoutType &= (~LayoutingType.Y);
}
-
- #region GraphicObject Overrides
protected override Size measureRawSize ()
{
Size tmp = new Size ();
}
/// <summary> By default in groups, LayoutingType.ArrangeChildren is reset </summary>
public virtual void ChildrenLayoutingConstraints(ref LayoutingType layoutType){
- layoutType &= (~LayoutingType.ArrangeChildren);
- }
+
+ }
+ public virtual bool ArrangeChildren { get { return false; } }
public virtual void RegisterForLayouting(LayoutingType layoutType){
if (Parent == null)
return;
if (Height == 0)
layoutType &= (~LayoutingType.Y);
+ if (!ArrangeChildren)
+ layoutType &= (~LayoutingType.ArrangeChildren);
+
//apply constraints depending on parent type
if (Parent is GraphicObject)
(Parent as GraphicObject).ChildrenLayoutingConstraints (ref layoutType);
IGOLibHost HostContainer { get; }
+ bool ArrangeChildren { get; }
LayoutingType RegisteredLayoutings { get; set; }
void RegisterForLayouting(LayoutingType layoutType);
void RegisterClip(Rectangle clip);
return base.AddChild (child);
}
-
+ public override bool ArrangeChildren { get { return true; } }
public override void ChildrenLayoutingConstraints (ref LayoutingType layoutType)
{
// //Prevent child repositionning in the direction of
public void RegisterClip(Rectangle r){
clipping.AddRectangle (r);
}
+ public bool ArrangeChildren { get { return false; }}
public int LayoutingTries {
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }