/// <summary> /// Size the object appropriately /// </summary> public override void OnBoundsFixup(BoundsFixupState fixupState, int iteration, bool createdDuringViewFixup) { base.OnBoundsFixup(fixupState, iteration, createdDuringViewFixup); if (fixupState == BoundsFixupState.ViewFixup) { AutoResize(); } }
public override void OnBoundsFixup(BoundsFixupState fixupState, int iteration, bool createdDuringViewFixup) { base.OnBoundsFixup(fixupState, iteration, createdDuringViewFixup); // be sure the isActiveTab property is set for Active Tab VDTabHead tabHead = this.ModelElement as VDTabHead; if (tabHead != null && tabHead.Parent != null && tabHead.Parent.Parent != null) { VDTab tab = tabHead.Parent.Parent as VDTab; if (tab != null && tab.ActiveHead == tabHead) { this.isActiveTab = true; } } }
public override void OnBoundsFixup(BoundsFixupState fixupState, int iteration, bool createdDuringViewFixup) { base.OnBoundsFixup(fixupState, iteration, createdDuringViewFixup); // be sure the isActiveTab property is set for Active Tab VDTabHead tabHead = this.ModelElement as VDTabHead; if (tabHead != null && tabHead.Parent != null && tabHead.Parent.Parent != null) { VDTab tab = tabHead.Parent.Parent as VDTab; if (tab != null && tab.ActiveHead == tabHead) { this.isActiveTab = true; } } }
/// <summary> /// TIPS placement d'un shape /// </summary> /// <param name="fixupState">The state of the bounds.</param> /// <param name="iteration">The iteration.</param> /// <param name="createdDuringViewFixup">true if a child shape was created during the fix up process; otherwise, false.</param> public override void OnBoundsFixup(BoundsFixupState fixupState, int iteration, bool createdDuringViewFixup) { base.OnBoundsFixup(fixupState, iteration, createdDuringViewFixup); AbsoluteBounds = new RectangleD(0, 0, Size.Width, Size.Height); }
/// <summary> /// Size the object appropriately /// </summary> public override void OnBoundsFixup(BoundsFixupState fixupState, int iteration, bool createdDuringViewFixup) { base.OnBoundsFixup(fixupState, iteration, createdDuringViewFixup); if (fixupState == BoundsFixupState.ViewFixup) { AutoResize(); } }
/// <summary> /// Ensure outer decorators are placed appropriately. This is called during view fixup, /// after the shape has been associated with the model element. /// </summary> /// <param name="fixupState"></param> /// <param name="iteration"></param> /// <param name="createdDuringViewFixup"></param> public override void OnBoundsFixup(BoundsFixupState fixupState, int iteration, bool createdDuringViewFixup) { base.OnBoundsFixup(fixupState, iteration, createdDuringViewFixup); ArrangeShapes(); }