diff --git a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj index 2e33d8e7..97c91d8b 100644 --- a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj +++ b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj @@ -95,9 +95,6 @@ App.xaml - - MainPage.xaml - @@ -150,25 +147,12 @@ - - Designer MSBuild:Compile - - MSBuild:MarkupCompilePass1 - - - Designer - MSBuild:Compile - - - MSBuild:Compile - Designer - Designer MSBuild:Compile @@ -203,7 +187,6 @@ - diff --git a/CampusAppWP8/CampusAppWP8/CampusAppWP8_2013_06_03_18_32_48.sap b/CampusAppWP8/CampusAppWP8/CampusAppWP8_2013_06_03_18_32_48.sap deleted file mode 100644 index 80973e01..00000000 --- a/CampusAppWP8/CampusAppWP8/CampusAppWP8_2013_06_03_18_32_48.sap +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/MainPage.xaml b/CampusAppWP8/CampusAppWP8/MainPage.xaml deleted file mode 100644 index 12492e18..00000000 --- a/CampusAppWP8/CampusAppWP8/MainPage.xaml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/MainPage.xaml.cs b/CampusAppWP8/CampusAppWP8/MainPage.xaml.cs deleted file mode 100644 index f92d1b7e..00000000 --- a/CampusAppWP8/CampusAppWP8/MainPage.xaml.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Navigation; -using Microsoft.Phone.Controls; -using Microsoft.Phone.Shell; -using CampusAppWP8.Resources; - -namespace CampusAppWP8 -{ - public partial class MainPage : PhoneApplicationPage - { - // Konstruktor - public MainPage() - { - InitializeComponent(); - - // Datenkontext des Listenfeldsteuerelements auf die Beispieldaten festlegen - DataContext = App.ViewModel; - - // Beispielcode zur Lokalisierung der ApplicationBar - //BuildLocalizedApplicationBar(); - } - - // Daten für die ViewModel-Elemente laden - protected override void OnNavigatedTo(NavigationEventArgs e) - { - if (!App.ViewModel.IsDataLoaded) - { - App.ViewModel.LoadData(); - } - } - - // Beispielcode zur Erstellung einer lokalisierten ApplicationBar - //private void BuildLocalizedApplicationBar() - //{ - // // ApplicationBar der Seite einer neuen Instanz von ApplicationBar zuweisen - // ApplicationBar = new ApplicationBar(); - - // // Eine neue Schaltfläche erstellen und als Text die lokalisierte Zeichenfolge aus AppResources zuweisen. - // ApplicationBarIconButton appBarButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/appbar.add.rest.png", UriKind.Relative)); - // appBarButton.Text = AppResources.AppBarButtonText; - // ApplicationBar.Buttons.Add(appBarButton); - - // // Ein neues Menüelement mit der lokalisierten Zeichenfolge aus AppResources erstellen - // ApplicationBarMenuItem appBarMenuItem = new ApplicationBarMenuItem(AppResources.AppBarMenuItemText); - // ApplicationBar.MenuItems.Add(appBarMenuItem); - //} - } -} \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/SampleData/MainViewModelSampleData.xaml b/CampusAppWP8/CampusAppWP8/SampleData/MainViewModelSampleData.xaml deleted file mode 100644 index 7aa39139..00000000 --- a/CampusAppWP8/CampusAppWP8/SampleData/MainViewModelSampleData.xaml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/ViewModels/ItemViewModel.cs b/CampusAppWP8/CampusAppWP8/ViewModels/ItemViewModel.cs deleted file mode 100644 index edd5be1f..00000000 --- a/CampusAppWP8/CampusAppWP8/ViewModels/ItemViewModel.cs +++ /dev/null @@ -1,88 +0,0 @@ -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Net; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Animation; - -namespace CampusAppWP8.ViewModels -{ - public class ItemViewModel : INotifyPropertyChanged - { - private string _lineOne; - /// - /// ViewModel-Beispieleigenschaft. Diese Eigenschaft wird in der Ansicht verwendet, um den Wert unter Verwendung einer Bindung anzuzeigen. - /// - /// - public string LineOne - { - get - { - return _lineOne; - } - set - { - if (value != _lineOne) - { - _lineOne = value; - NotifyPropertyChanged("LineOne"); - } - } - } - - private string _lineTwo; - /// - /// ViewModel-Beispieleigenschaft. Diese Eigenschaft wird in der Ansicht verwendet, um den Wert unter Verwendung einer Bindung anzuzeigen. - /// - /// - public string LineTwo - { - get - { - return _lineTwo; - } - set - { - if (value != _lineTwo) - { - _lineTwo = value; - NotifyPropertyChanged("LineTwo"); - } - } - } - - private string _lineThree; - /// - /// ViewModel-Beispieleigenschaft. Diese Eigenschaft wird in der Ansicht verwendet, um den Wert unter Verwendung einer Bindung anzuzeigen. - /// - /// - public string LineThree - { - get - { - return _lineThree; - } - set - { - if (value != _lineThree) - { - _lineThree = value; - NotifyPropertyChanged("LineThree"); - } - } - } - - public event PropertyChangedEventHandler PropertyChanged; - private void NotifyPropertyChanged(String propertyName) - { - PropertyChangedEventHandler handler = PropertyChanged; - if (null != handler) - { - handler(this, new PropertyChangedEventArgs(propertyName)); - } - } - } -} \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/ViewModels/MainViewModel.cs b/CampusAppWP8/CampusAppWP8/ViewModels/MainViewModel.cs deleted file mode 100644 index c100fbaf..00000000 --- a/CampusAppWP8/CampusAppWP8/ViewModels/MainViewModel.cs +++ /dev/null @@ -1,94 +0,0 @@ -using System; -using System.Collections.ObjectModel; -using System.ComponentModel; -using CampusAppWP8.Resources; - -namespace CampusAppWP8.ViewModels -{ - public class MainViewModel : INotifyPropertyChanged - { - public MainViewModel() - { - this.Items = new ObservableCollection(); - } - - /// - /// Eine Auflistung für ItemViewModel-Objekte. - /// - public ObservableCollection Items { get; private set; } - - private string _sampleProperty = "Sample Runtime Property Value"; - /// - /// ViewModel-Beispieleigenschaft. Diese Eigenschaft wird in der Ansicht verwendet, um den Wert unter Verwendung einer Bindung anzuzeigen - /// - /// - public string SampleProperty - { - get - { - return _sampleProperty; - } - set - { - if (value != _sampleProperty) - { - _sampleProperty = value; - NotifyPropertyChanged("SampleProperty"); - } - } - } - - /// - /// Beispieleigenschaft, die eine lokalisierte Zeichenfolge zurückgibt - /// - public string LocalizedSampleProperty - { - get - { - return AppResources.SampleProperty; - } - } - - public bool IsDataLoaded - { - get; - private set; - } - - /// - /// Erstellt und fügt einige ItemViewModel-Objekte zur Items-Auflistung hinzu. - /// - public void LoadData() - { - // Beispieldaten. Durch echte Daten ersetzen - this.Items.Add(new ItemViewModel() { LineOne = "runtime one", LineTwo = "Maecenas praesent accumsan bibendum", LineThree = "Facilisi faucibus habitant inceptos interdum lobortis nascetur pharetra placerat pulvinar sagittis senectus sociosqu" }); - this.Items.Add(new ItemViewModel() { LineOne = "runtime two", LineTwo = "Dictumst eleifend facilisi faucibus", LineThree = "Suscipit torquent ultrices vehicula volutpat maecenas praesent accumsan bibendum dictumst eleifend facilisi faucibus" }); - this.Items.Add(new ItemViewModel() { LineOne = "runtime three", LineTwo = "Habitant inceptos interdum lobortis", LineThree = "Habitant inceptos interdum lobortis nascetur pharetra placerat pulvinar sagittis senectus sociosqu suscipit torquent" }); - this.Items.Add(new ItemViewModel() { LineOne = "runtime four", LineTwo = "Nascetur pharetra placerat pulvinar", LineThree = "Ultrices vehicula volutpat maecenas praesent accumsan bibendum dictumst eleifend facilisi faucibus habitant inceptos" }); - this.Items.Add(new ItemViewModel() { LineOne = "runtime five", LineTwo = "Maecenas praesent accumsan bibendum", LineThree = "Maecenas praesent accumsan bibendum dictumst eleifend facilisi faucibus habitant inceptos interdum lobortis nascetur" }); - this.Items.Add(new ItemViewModel() { LineOne = "runtime six", LineTwo = "Dictumst eleifend facilisi faucibus", LineThree = "Pharetra placerat pulvinar sagittis senectus sociosqu suscipit torquent ultrices vehicula volutpat maecenas praesent" }); - this.Items.Add(new ItemViewModel() { LineOne = "runtime seven", LineTwo = "Habitant inceptos interdum lobortis", LineThree = "Accumsan bibendum dictumst eleifend facilisi faucibus habitant inceptos interdum lobortis nascetur pharetra placerat" }); - this.Items.Add(new ItemViewModel() { LineOne = "runtime eight", LineTwo = "Nascetur pharetra placerat pulvinar", LineThree = "Pulvinar sagittis senectus sociosqu suscipit torquent ultrices vehicula volutpat maecenas praesent accumsan bibendum" }); - this.Items.Add(new ItemViewModel() { LineOne = "runtime nine", LineTwo = "Maecenas praesent accumsan bibendum", LineThree = "Facilisi faucibus habitant inceptos interdum lobortis nascetur pharetra placerat pulvinar sagittis senectus sociosqu" }); - this.Items.Add(new ItemViewModel() { LineOne = "runtime ten", LineTwo = "Dictumst eleifend facilisi faucibus", LineThree = "Suscipit torquent ultrices vehicula volutpat maecenas praesent accumsan bibendum dictumst eleifend facilisi faucibus" }); - this.Items.Add(new ItemViewModel() { LineOne = "runtime eleven", LineTwo = "Habitant inceptos interdum lobortis", LineThree = "Habitant inceptos interdum lobortis nascetur pharetra placerat pulvinar sagittis senectus sociosqu suscipit torquent" }); - this.Items.Add(new ItemViewModel() { LineOne = "runtime twelve", LineTwo = "Nascetur pharetra placerat pulvinar", LineThree = "Ultrices vehicula volutpat maecenas praesent accumsan bibendum dictumst eleifend facilisi faucibus habitant inceptos" }); - this.Items.Add(new ItemViewModel() { LineOne = "runtime thirteen", LineTwo = "Maecenas praesent accumsan bibendum", LineThree = "Maecenas praesent accumsan bibendum dictumst eleifend facilisi faucibus habitant inceptos interdum lobortis nascetur" }); - this.Items.Add(new ItemViewModel() { LineOne = "runtime fourteen", LineTwo = "Dictumst eleifend facilisi faucibus", LineThree = "Pharetra placerat pulvinar sagittis senectus sociosqu suscipit torquent ultrices vehicula volutpat maecenas praesent" }); - this.Items.Add(new ItemViewModel() { LineOne = "runtime fifteen", LineTwo = "Habitant inceptos interdum lobortis", LineThree = "Accumsan bibendum dictumst eleifend facilisi faucibus habitant inceptos interdum lobortis nascetur pharetra placerat" }); - this.Items.Add(new ItemViewModel() { LineOne = "runtime sixteen", LineTwo = "Nascetur pharetra placerat pulvinar", LineThree = "Pulvinar sagittis senectus sociosqu suscipit torquent ultrices vehicula volutpat maecenas praesent accumsan bibendum" }); - - this.IsDataLoaded = true; - } - - public event PropertyChangedEventHandler PropertyChanged; - private void NotifyPropertyChanged(String propertyName) - { - PropertyChangedEventHandler handler = PropertyChanged; - if (null != handler) - { - handler(this, new PropertyChangedEventArgs(propertyName)); - } - } - } -} \ No newline at end of file