示例#1
0
        public StartPage()
        {
            InitializeComponent();
            ViewModel = Resources["ViewModel"] as BookListViewModel;
            //var source = ListBox_BookList.ItemsSource as System.Windows.Data.CollectionViewSource;
            //source.SortDescriptions.Add(new System.ComponentModel.SortDescription("LastReadTime", System.ComponentModel.ListSortDirection.Descending));

            PhoneApplicationService.Current.ContractActivated += Current_ContractActivated;
        }
示例#2
0
		public StartPage()
		{
			InitializeComponent();
			ViewModel = Resources["ViewModel"] as BookListViewModel;
			//var source = ListBox_BookList.ItemsSource as System.Windows.Data.CollectionViewSource;
			//source.SortDescriptions.Add(new System.ComponentModel.SortDescription("LastReadTime", System.ComponentModel.ListSortDirection.Descending));

			PhoneApplicationService.Current.ContractActivated += Current_ContractActivated;
		}