protected sealed override Size MeasureOverride(Size availableSize) { if (DisplayContent == null) { DisplayContent = GetControlTemplatedInstance(); } DisplayContent?.Measure(availableSize); return(DisplayContent?.DesiredSize ?? Size.Empty); }
protected override Size MeasureOverride(Size availableSize) { DisplayContent?.Measure(availableSize); return(DisplayContent?.DesiredSize ?? Size.Empty); }