set {
if (horizontalAlignment == value)
return;
-
horizontalAlignment = value;
NotifyValueChanged("HorizontalAlignment", horizontalAlignment);
RegisterForLayouting (LayoutingType.X);
set {
if (left == value)
return;
-
left = value;
NotifyValueChanged ("Left", left);
this.RegisterForLayouting (LayoutingType.X);
set {
if (top == value)
return;
-
top = value;
NotifyValueChanged ("Top", top);
this.RegisterForLayouting (LayoutingType.Y);
#if DEBUG_LAYOUTING
CurrentInterface.currentLQI.Slot = LastSlots;
CurrentInterface.currentLQI.NewSlot = Slot;
+ Debug.WriteLine ("\t\t{0} => {1}",LastSlots,Slot);
#endif
switch (layoutType) {
LQITime = new Stopwatch();
Slot = Rectangle.Empty;
NewSlot = Rectangle.Empty;
+ Debug.WriteLine ("\tRegister => " + this.ToString ());
#endif
}
#endregion
}
#if DEBUG_LAYOUTING
LQITime.Start();
+ Debug.WriteLine ("=> " + this.ToString ());
#endif
LayoutingTries++;
if (!Layoutable.UpdateLayout (LayoutType)) {
+ #if DEBUG_LAYOUTING
+ Debug.WriteLine ("\t\tRequeued");
+ #endif
if (LayoutingTries < Interface.MaxLayoutingTries) {
Layoutable.RegisteredLayoutings |= LayoutType;
(Layoutable as GraphicObject).CurrentInterface.LayoutingQueue.Enqueue (this);
} else if (DiscardCount < Interface.MaxDiscardCount) {
+ #if DEBUG_LAYOUTING
+ Debug.WriteLine ("\t\tDiscarded");
+ #endif
LayoutingTries = 0;
DiscardCount++;
Layoutable.RegisteredLayoutings |= LayoutType;