public Rect GetControlRect() { return(!FrameworkObject.Return(x => x.IsLoaded, () => false) || PresentationSource.FromDependencyObject(WindowObject) == null ? Rect.Empty : GetRealRect(FrameworkObject)); }