internal double GetReferenceLength(UIElement elem) { return (double)elem.GetValue(ReferLengthProperty); }