CAT | Windows Phone 7

MediaPlayerLauncher objmp= new MediaPlayerLauncher();
objmp.Media = new Uri("myMedia.mp4", UriKind.Relative);
objmp.Controls = MediaPlaybackControls.Pause | MediaPlaybackControls.Stop | MediaPlaybackControls.All;
objmp.Location = MediaLocationType.Install;
objmp.Orientation = MediaPlayerOrientation.Landscape;
objmp.Show();

No tags Hide

     string Width = Application.Current.Host.Content.ActualWidth.ToString();  
 
     string Height = Application.Current.Host.Content.ActualHeight.ToString();  
 
     MessageBox.Show(Width + " X " + Height);

No tags Hide

In FirstPage.Xaml

    private void firstpageButton_Click(object sender, RoutedEventArgs e)  
    {  
         string url = string.Format("/SecondPage.xaml?Para1={0}", txtParamete.Text);  
         this.NavigationService.Navigate(new Uri(url, UriKind.Relative));  
    }

SecondPage.xaml

private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)  
{  
     lblParameterValue.Text = this.NavigationContext.QueryString["Para1"].ToString();  
}

No tags Hide

Next »

Managed by

MNP INFOTECH