/// <summary> /// Updates the legend visibility when the title changes. /// </summary> /// <param name="sender">The legend with a Title that changed.</param> /// <param name="args">Information about the event.</param> public static void OnTitleChanged(object sender, DependencyPropertyChangedEventArgs args) { Legend legend = (Legend)sender; #if !SILVERLIGHT // Push value through because Binding doesn't work like it does on Silverlight legend.Header = legend.Title; #endif legend.UpdateLegendVisibility(); }
/// <summary> /// Updates the legend visibility when the title changes. /// </summary> /// <param name="sender">The legend with a Title that changed.</param> /// <param name="args">Information about the event.</param> public static void OnTitleChanged(object sender, DependencyPropertyChangedEventArgs args) { Legend legend = (Legend)sender; legend.UpdateLegendVisibility(); }