开发者

Silverlight 4 NumericUpDown buttons are too wide and non-functional

开发者 https://www.devze.com 2023-01-24 11:49 出处:网络
I placed this control in a test app, and it works fine. But in my business app, which has a Silverlight 4 implicit theme applied (AccentColor theme), the up/down buttons are too wide and non-functiona

I placed this control in a test app, and it works fine. But in my business app, which has a Silverlight 4 implicit theme applied (AccentColor theme), the up/down buttons are too wide and non-functional. I know for sure this is not what the theme calls for - I found a site showing off the theme on various controls, and the NumericUpDown control looks normal and is functional in every way:

http://www.silverlight.net/content/samples/sl4/themes/accent.html#/Toolkit

I've also placed this Numeri开发者_开发技巧cUpDown control in various areas within my app. Still same thing. I've also tried to apply an explicit style of targettype NumericUpDown (the style being an empty style). But still the same thing.

Anybody seen something like?


Turns out i had an implicit Button style that was setting the width to be really big. This solved the width problem.

Now for the non-functional up/down problem, i just removed a reference in the style template that was referring to a spinner button, or something to that effect. Now it works just fine.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号