/// <summary> /// Calls <see cref="InvalidateMeasure"/> on the control on which a property changed. /// </summary> /// <param name="e">The event args.</param> private static void AffectsMeasureInvalidate(PerspexPropertyChangedEventArgs e) { ILayoutable control = e.Sender as ILayoutable; if (control != null) { control.InvalidateMeasure(); } }
/// <summary> /// Calls <see cref="InvalidateMeasure"/> on the control on which a property changed. /// </summary> /// <param name="e">The event args.</param> private static void AffectsMeasureInvalidate(AvaloniaPropertyChangedEventArgs e) { ILayoutable control = e.Sender as ILayoutable; control?.InvalidateMeasure(); }