Scaling the controls

Sep 1, 2010 at 7:53 AM

Hi

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.

Thanks

Kurt

 

Sep 1, 2010 at 11:34 AM

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 11:47 AM

Thanks, I'll try that.