Aspect Ratio not working??

Jun 11, 2009 at 9:05 AM

i have recently changed  my SLplayer size to 800x300 and player didn't maintain its height, rather it scaled height w.r.t width.. please help me how can i solve this issue...?

Jun 11, 2009 at 1:01 PM

i have created a workaround by adding this to page.xaml

App.Current.Host.Content.FullScreenChanged += new System.EventHandler(Content_FullScreenChanged);

        void Page_SizeChanged(object sender, SizeChangedEventArgs e)
            if (!App.Current.Host.Content.IsFullScreen)
                mediaPlayer.Height = e.NewSize.Height;
                mediaPlayer.Width = e.NewSize.Width;

                _defaultPlayerWidth = e.NewSize.Width;
                _defaultPlayerHeight = e.NewSize.Height;


let me know if thats the right solution.