2 using System.Collections.Generic;
6 using System.Windows.Controls;
7 using System.Windows.Documents;
10 using System.Windows.Media.Animation;
11 using System.Windows.Shapes;
12 using Microsoft.Phone.Controls;
17 public partial class FilePage : PhoneApplicationPage
19 public static Uri
URI =
new Uri(
"/FilePage.xaml", UriKind.Relative );
23 InitializeComponent();
26 private void PhoneApplicationPage_GotFocus(
object sender, RoutedEventArgs e )
30 private void PhoneApplicationPage_Loaded(
object sender, RoutedEventArgs e )
35 private void buttonView_Click(
object sender, RoutedEventArgs e )
42 catch ( IndexOutOfRangeException )
47 private void buttonDelete_Click(
object sender, RoutedEventArgs e )
54 catch ( IndexOutOfRangeException )
59 string GetSelectedFileName()
61 if ( fileList.SelectedIndex < 0 )
throw new IndexOutOfRangeException();
62 return fileList.SelectedItem as string;
67 fileList.Items.Clear();
69 fileList.Items.Add( file );
static IsolatedStorageManager Instance
override void Delete(string fileName)
Poistaa tiedoston.
override IList< string > GetFileList()