Beispiel #1
0
 public static void ShowSplit(IGroupInfo collection)
 {
     var page = new SplitPage();
     if (_sampleData == null) _sampleData = new SampleDataSource(page.BaseUri);
     if (collection == null) collection = _sampleData.GroupedCollections.First();
     page.Items = collection;
     page.Context = collection.Key;
     Window.Current.Content = page;
 }
Beispiel #2
0
        async private Task EnsureSplitPageAsync(IActivatedEventArgs args)
        {
            if (args.PreviousExecutionState == ApplicationExecutionState.Terminated)
            {
                // rehydrate any settings we need
            }

            if (Window.Current.Content == null)
            {
                var page = new SplitPage();
                page.Items = null;
                page.Context = null;
                Window.Current.Content = page;
                Window.Current.Activate();
            }
        }
Beispiel #3
0
        public static void ShowSplit(IGroupInfo collection)
        {
            var page = new SplitPage();

            if (_sampleData == null)
            {
                _sampleData = new SampleDataSource(page.BaseUri);
            }
            if (collection == null)
            {
                collection = _sampleData.GroupedCollections.First();
            }
            page.Items             = collection;
            page.Context           = collection.Key;
            Window.Current.Content = page;
        }
Beispiel #4
0
        async private Task EnsureSplitPageAsync(IActivatedEventArgs args)
        {
            if (args.PreviousExecutionState == ApplicationExecutionState.Terminated)
            {
                // rehydrate any settings we need
            }

            if (Window.Current.Content == null)
            {
                await Task.Run(() =>
                {
                    var page               = new SplitPage();
                    page.Items             = null;
                    page.Context           = null;
                    Window.Current.Content = page;
                    Window.Current.Activate();
                });
            }
        }