Wednesday, September 14, 2011

media elements

using System;

using System.Collections.Generic;

using System.Linq;

using System.Net;

using System.Windows;

using System.Windows.Controls;

using System.Windows.Documents;

using System.Windows.Input;

using System.Windows.Media;

using System.Windows.Media.Animation;

using System.Windows.Shapes;

using Microsoft.Phone.Controls;

using System;

using System.Collections.Generic;

using System.Linq;

using System.Net;

using System.Windows;

using System.Windows.Controls;

using System.Windows.Documents;

using System.Windows.Input;

using System.Windows.Media;

using System.Windows.Media.Animation;

//using System.Windows.Shapes;

using Microsoft.Phone.Controls;

//using Microsoft.Advertising.Mobile.UI;

using System;

using System.Collections.Generic;

using System.Linq;

using System.Net;

using System.Windows;

using System.Windows.Controls;

using System.Windows.Documents;

using System.Windows.Input;

using System.Windows.Media;

using System.Windows.Media.Animation;

using Microsoft.Phone.Controls;

using System.IO.IsolatedStorage;

using System.Text;

using System.IO;

using System.Windows.Media;

using System.Windows.Resources;

using System.Windows.Threading;

using Microsoft.Phone.Controls;

using Microsoft.Xna.Framework;

using Microsoft.Xna.Framework.Audio;

//using Microsoft.Advertising.Mobile.UI;

using System;

using System.Windows.Media;

using System.Windows.Media.Animation;

using System.Collections.Generic;

using System.Linq;

using System.Net;

using System.Windows;

using System.Windows.Controls;

using System.Windows.Documents;

using System.Windows.Input;

using System.Windows.Media;

using System.Windows.Media.Animation;

using System.Threading;

using System.Windows.Shapes;

using Microsoft.Phone.Controls;

//using System.Net.NetworkInformation;

//using PhoneNetworkApi = Microsoft.Phone.Net.NetworkInformation;

using Microsoft.Phone.Net.NetworkInformation;

namespace WindowsPhonePanoramaApplication6

{

public partial class MainPage : PhoneApplicationPage

{

// Constructor

public MainPage()

{

InitializeComponent();

// Set the data context of the listbox control to the sample data

DataContext = App.ViewModel;

this.Loaded += new RoutedEventHandler(MainPage_Loaded);

media1.MediaEnded += new RoutedEventHandler(media_ended);

media1.MediaFailed += new EventHandler<ExceptionRoutedEventArgs>(failed_bud);

}

// Load data for the ViewModel Items

private void MainPage_Loaded(object sender, RoutedEventArgs e)

{

if (!App.ViewModel.IsDataLoaded)

{

App.ViewModel.LoadData();

}

}

private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)

{

}

private void media1_MediaOpened(object sender, System.Windows.RoutedEventArgs e)

{

}

private void media_ended(object sender, System.Windows.RoutedEventArgs e)

{

}

public void failed_bud(object sender, ExceptionRoutedEventArgs e)

{

}

}

}

No comments:

Post a Comment