Пример #1
0
 public Size Size => (this.UIElement is FrameworkElement fe) ? new Size(fe.Width, fe.Height) : this.UIElement.RenderSize;
Пример #2
0
 public virtual Size Size => (this.WPFPrimaryElement is FrameworkElement fe) ? new Size(fe.Width, fe.Height) : this.WPFPrimaryElement.RenderSize;