Dirkster99/NumericUpDownLib

how to prevent the repeat button being change by other theme/lib

heartacker opened this issue · 3 comments

hi, I am using your NumericUpDownLib and also using other UI/THEME lib in my APP,
when I add those theme resource, the button style was change,

and how can we prevent this?

Thanks

image

👯

I had the same issue when using Material Design In XAML package. The solution (more of a crutch, tbh) is to use the NumericUpDownLib from GitHub in your project and then to set the Style property for RepeatButton in NumericRepeatButtonControl.xaml to {x:Null}. This prevented Material Design In XAML to sneak in and set the RepeatButton style. I also posted this question in Material Design In XAML repository (presuming that this behavior might break certain custom-made controls that we can install from NuGet and a mechanism to prevent carpet-bombing styling would be appreciated), but as of now, no answer yet.

yes, I had a pr #60 @faguetan