/// <summary> /// Handle the IsRequired field property change event. /// </summary> /// <param name="depObj">The Label that had its IsRequired value changed.</param> /// <param name="e">The DependencyPropertyChangedEventArgs for this event.</param> private static void OnIsRequiredPropertyChanged(DependencyObject depObj, DependencyPropertyChangedEventArgs e) { // Dependency property changed Label fl = depObj as Label; if (fl != null) { fl.UpdateRequiredState(); } }