If i place media player at the center of silverligth project . i am geting spaces on the left and top ? (After the pressing full size button) Because of that i put the radmediaplayer on the left of my page :-(
http://www.trt.net.tr/Canli/AnaSayfa.aspx
and also sometimes , Despite I changed the channel, the former channel is the sound can be heard?
I think radmedia still connected to our server ? or layout couldn't remove (LayoutRoot.Children.Remove(RadMediaPlayer1);) player?
are ther any simple full screen solution?
thanx
ruhi
......
private void Content_FullScreenChanged(object sender, EventArgs e)
{
if (Application.Current.Host.Content.IsFullScreen)
{
RadMediaPlayer1.Width =
Application.Current.Host.Content.ActualWidth;
RadMediaPlayer1.Height =
Application.Current.Host.Content.ActualHeight;
popUp.IsOpen =
true;
LayoutRoot.Children.Remove(RadMediaPlayer1);
popUp.Child = RadMediaPlayer1;
}
else
{
RadMediaPlayer1.Width =
Double.NaN;
RadMediaPlayer1.Height =
Double.NaN;
popUp.Child =
null;
if (!LayoutRoot.Children.Contains(RadMediaPlayer1))
{
LayoutRoot.Children.Add(RadMediaPlayer1);
}
RadMediaPlayer1.IsFullScreen =
false;
}
}
private void RadMediaPlayer1_FullScreenChanged(object sender, EventArgs e)
{
//this.currentMediaElementPosition = RadMediaPlayer1.MediaElement.Position;
Application.Current.Host.Content.IsFullScreen = RadMediaPlayer1.IsFullScreen;
}