Esempio n. 1
0
        /// <summary>
        /// Invoked when the application is activated.
        /// </summary>
        /// <param name="args">Details about the activated request and process.</param>
        protected override void OnActivated(IActivatedEventArgs args)
        {
            if (args.Kind == ActivationKind.CameraSettings)
            {
                base.OnActivated(args);
                DeviceAppPage page = new DeviceAppPage();
                Window.Current.Content = page;
                page.Initialize((CameraSettingsActivatedEventArgs)args);

                Window.Current.Activate();
            }
        }
        /// <summary>
        /// Invoked when the application is activated.
        /// </summary>
        /// <param name="args">Details about the activated request and process.</param>
        protected override void OnActivated(IActivatedEventArgs args)
        {
            if (args.Kind == ActivationKind.CameraSettings)
            {
                base.OnActivated(args);
                DeviceAppPage page = new DeviceAppPage();
                Window.Current.Content = page;
                page.Initialize((CameraSettingsActivatedEventArgs)args);

                Window.Current.Activate();
            }
        }