Thumbnails to fit video player dimensions

Jul 1, 2009 at 9:14 AM


is there some easy way how to tell the player to resize thumbnail to fit video player dimensions? Currently my attempts show that when is smaller than video player dimensions, image is aligned to top left corner. It might be good if users of SL2VideoPlayer can somehow control stretch attribute of this thumbnail.






Jul 1, 2009 at 11:07 AM

OK, I think I understand what is going on here - problem is that thumbnail image control is placed into canvas. It's default dimensions are 0,0 and it is only enlarged by the width and height of thumbnail image. So even when stretch="UniformToFill" attribute is used for image, it does not know that it should enlarge up to dimensions of videoplayer. It will work perfectly when thumbnail dimensions are bigger than video player but when thumbnail is smaller, image will not be resized up to size of video player.

I think changing holder of thumbnail image from canvas to stackpanel will solve this.


Jan 21, 2010 at 6:14 AM

It does not resize when the image is too big either.