diff options
Diffstat (limited to 'src/GraphicObjects')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 94e3f5e7..88166fe6 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -666,7 +666,7 @@ namespace Crow if (Width == Measure.Fit || Height == Measure.Fit) RegisterForLayouting (LayoutingType.Sizing); else if (RegisteredLayoutings == LayoutingType.None) - CurrentInterface.EnqueueForRepaint (this); + Interface.CurrentInterface.EnqueueForRepaint (this); } /// <summary> query an update of the content, a redraw </summary> [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -674,19 +674,19 @@ namespace Crow { bmp = null; if (RegisteredLayoutings == LayoutingType.None) - CurrentInterface.EnqueueForRepaint (this); - } - public Interface CurrentInterface { - get { - ILayoutable tmp = this.Parent; - while (tmp != null) { - if (tmp is Interface) - return tmp as Interface; - tmp = tmp.Parent; - } - return null; - } + Interface.CurrentInterface.EnqueueForRepaint (this); } +// public Interface CurrentInterface { +// get { +// ILayoutable tmp = this.Parent; +// while (tmp != null) { +// if (tmp is Interface) +// return tmp as Interface; +// tmp = tmp.Parent; +// } +// return null; +// } +// } #region Layouting |