NumericUpDownLib icon indicating copy to clipboard operation
NumericUpDownLib copied to clipboard

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

Open heartacker opened this issue 2 years ago • 3 comments
trafficstars

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

heartacker avatar Apr 26 '23 23:04 heartacker

👯

heartacker avatar Apr 27 '23 01:04 heartacker

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.

faguetan avatar May 08 '23 01:05 faguetan

yes, I had a pr #60 @faguetan

heartacker avatar May 08 '23 01:05 heartacker