Exemple #1
0
        protected sealed override Size MeasureOverride(Size availableSize)
        {
            if (DisplayContent == null)
            {
                DisplayContent = GetControlTemplatedInstance();
            }

            DisplayContent?.Measure(availableSize);
            return(DisplayContent?.DesiredSize ?? Size.Empty);
        }
Exemple #2
0
 protected override Size MeasureOverride(Size availableSize)
 {
     DisplayContent?.Measure(availableSize);
     return(DisplayContent?.DesiredSize ?? Size.Empty);
 }