Scaling the controls

Sep 1, 2010 at 8:53 AM


I would like to be able to scale the size of the SMF player controls if the size of the containing control is very small.

The Expression Encoder player templates does this very nicely, but not so with the default SMF player template.

Any tips?

IMHO It would be nice if this was built in as default.




Sep 1, 2010 at 12:34 PM

You'll need to copy the current style/template for the player (very easy to do in blend) and wrap the ControllerContainer grid in a ViewBox control. ViewBox automatically scales it's contents as it's own size grows.

Sep 1, 2010 at 12:47 PM

Thanks, I'll try that.