Skip to content

Commit

Permalink
Merge pull request #4792 from michael-hawker/colorpickerslider-theme-…
Browse files Browse the repository at this point in the history
…change-fix

ColorPicker Slider Circle Accessibility Fix
  • Loading branch information
michael-hawker authored Oct 21, 2022
2 parents b22c115 + 2cb5e83 commit 77b009d
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public ColorPickerSlider()
: base()
{
this.DefaultStyleKey = typeof(ColorPickerSlider);

this.ActualThemeChanged += this.ColorPickerSlider_ActualThemeChanged;
}

/***************************************************************************************
Expand Down Expand Up @@ -297,5 +299,14 @@ private void OnDependencyPropertyChanged(object sender, DependencyPropertyChange

return;
}

/// <summary>
/// Event handler for when the control's theme changes.
/// </summary>
private void ColorPickerSlider_ActualThemeChanged(FrameworkElement sender, object args)
{
this.UpdateColors();
return;
}
}
}

0 comments on commit 77b009d

Please sign in to comment.