Example #1
0
 /// <summary>
 /// Method is invoked when theme manager is asked
 /// to change the accent color and has actually changed it.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Appearance_AccentColorChanged(object sender, MLib.Events.ColorChangedEventArgs e)
 {
     // Add code here to react on changes of accent color
     // Changing other custom control styles is possible in XAML using the BindToMLib pattern:
     // https://www.codeproject.com/Articles/1236588/File-System-Controls-in-WPF-Version-III#ExtensionPoints
     //
     // So, most of the time you will not need this but its there in case you prefer code behind
     // for this and do actually need it.
 }
 /// <summary>
 /// Method is invoked when theme manager is asked
 /// to change the accent color and has actually changed it.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Appearance_AccentColorChanged(object sender, MLib.Events.ColorChangedEventArgs e)
 {
 }
Example #3
0
 /// <summary>
 /// Method is invoked when theme manager is asked
 /// to change the accent color and has actually changed it.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void Appearance_AccentColorChanged(object sender, MLib.Events.ColorChangedEventArgs e)
 {
     // Extend or overwrite this with custom code if you need to react directly on a change
     // of accent color definition
 }