示例#1
0
 protected override System.Windows.Size ArrangeOverride(System.Windows.Size finalSize)
 {
     _finalSize = finalSize.ToAvaloniaSize();
     if (_finalSize == _previousSize)
     {
         return(finalSize);
     }
     _previousSize = _finalSize;
     _ttl.Resized?.Invoke(finalSize.ToAvaloniaSize(), PlatformResizeReason.Unspecified);
     return(base.ArrangeOverride(finalSize));
 }
示例#2
0
 protected override System.Windows.Size MeasureOverride(System.Windows.Size availableSize)
 {
     ControlRoot.Measure(availableSize.ToAvaloniaSize());
     return(ControlRoot.DesiredSize.ToWpfSize());
 }