Excellent control. One enhancement I would like to see is the display of the current value. A really neat way to do this would be to display it on the slider handle itself, but if you can't do that, then just a label before or after to show the value would be great.
I managed to simulate this with a combination of the Pixata Labelled Group control from my own custom control suite, and Yann Duran's TextBlock control, and ended up with something that looks like the picture you can see at http://dotnetwhatnot.pixata.co.uk/MyBits/LightswitchSilder.png
It would be great if this was available out of the box. Thanks again.
I hope you don't mind, I've modified your slider control to change it to Metro style. I've also added an option to get the max/min value from the property it's bound to, rather than having to specify it in the control.
I've added this to my extension, if you want I can give you the source to these changes if you would rather incorporate these changes into your control (and I can remove it from my suite).
Hey Roberto! Thank you for this control, I added it to my toolbelt asap!
Two little questions though:
* the "minimumvalue" can be higher then the "maximumvalue", but I'm not sure if this is can even be fixed. (I wouldn't know how)
* can we theme this control if we make a new theme?
1) I searched a bit and I didn't find a way to set this kind of constraint between two properties.
2) I don't know much about Theme extensions. Do you want to redefine the template or only set custom colors (or use the ones inside basic template)?
Currently the control is a UserControl with two textblock and a custom silverlight control. I will add the generic theme for it. However to Theme a silverlight control you should reference it in the theme. I don't know what is the correct way to do this. Do you have some suggestions? I just open a discussion in lightswitch extensibility forum.
I have the German version of Visual Studio 2010 with SP1. (Version 10.0.40219.1 SP1 Rel)
When I try to install your SnapSlider, I get an error message:
"This extension can't be installed to the current products."