Example #1
0
 /// <summary>
 /// Implements any custom measuring behavior for the adorner.
 /// </summary>
 /// <param name="constraint">A size to constrain the adorner to.</param>
 /// <returns>
 /// A <see cref="T:System.Windows.Size"/> object representing the amount of layout space needed by the adorner.
 /// </returns>
 protected override Size MeasureOverride(Size constraint)
 {
     _ui.Measure(constraint);
     return(_ui.DesiredSize);
 }