protected override void OnLaunched(LaunchActivatedEventArgs e)
        {
            AppManager.Init();

            var shell = Window.Current.Content as AppShell;

            // Do not repeat app initialization when the Window already has content, just ensure that the window is active
            if (shell == null)
            {
                shell = new AppShell();

                if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
                {
                    //TODO: Load state from previously suspended application
                }

                Window.Current.Content = shell;
            }

            if (!e.PrelaunchActivated)
            {
                if (shell.AppFrame.Content == null)
                {
                    // When the navigation stack isn't restored navigate to the first page,
                    // configuring the new page by passing required information as a navigation
                    // parameter
                    shell.AppFrame.Navigate(typeof(DashboardPage), e.Arguments);
                }

                Window.Current.Activate();
            }

            ApplicationView.GetForCurrentView().SetPreferredMinSize(new Size(320, 200));
        }
        public AppShell()
        {
            InitializeComponent();
            Current = this;

            AppFrame.CacheSize = 1; // TODO: change this value to a cache size that is appropriate for your application

            SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested;
            //DataTransferManager.GetForCurrentView().DataRequested += OnDataRequested;
        }