Example #1
0
 protected override void OnActivated(Windows.ApplicationModel.Activation.IActivatedEventArgs args)
 {
     if (args.Kind == ActivationKind.ContactPicker)
     {
         var page = new MainPagePicker();
         page.Activate((ContactPickerActivatedEventArgs)args);
     }
     else
     {
         base.OnActivated(args);
     }
 }
Example #2
0
 protected override void OnActivated(Windows.ApplicationModel.Activation.IActivatedEventArgs args)
 {
     if (args.Kind == ActivationKind.ContactPicker)
     {
         var page = new MainPagePicker();
         page.Activate((ContactPickerActivatedEventArgs)args);
     }
     else
     {
         base.OnActivated(args);
     }
 }
        public MainPagePicker()
        {
            this.InitializeComponent();

            // This is a static public property that will allow downstream pages to get
            // a handle to the MainPagePicker instance in order to call methods that are in this class.
            Current = this;

            // This frame is hidden, meaning it is never shown.  It is simply used to load
            // each scenario page and then pluck out the input and output sections and
            // place them into the UserControls on the main page.
            HiddenFrame            = new Windows.UI.Xaml.Controls.Frame();
            HiddenFrame.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
            LayoutRoot.Children.Add(HiddenFrame);

            // Populate the sample title from the constant in the GlobalVariables.cs file.
            SetFeatureName(FEATURE_NAME);

            Scenarios.SelectionChanged += Scenarios_SelectionChanged;
            SizeChanged += MainPagePicker_SizeChanged;
        }
Example #4
0
        public MainPagePicker()
        {
            this.InitializeComponent();

            // This is a static public property that will allow downstream pages to get
            // a handle to the MainPagePicker instance in order to call methods that are in this class.
            Current = this;

            // This frame is hidden, meaning it is never shown.  It is simply used to load
            // each scenario page and then pluck out the input and output sections and
            // place them into the UserControls on the main page.
            HiddenFrame = new Windows.UI.Xaml.Controls.Frame();
            HiddenFrame.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
            LayoutRoot.Children.Add(HiddenFrame);

            // Populate the sample title from the constant in the GlobalVariables.cs file.
            SetFeatureName(FEATURE_NAME);

            Scenarios.SelectionChanged += Scenarios_SelectionChanged;
            SizeChanged += MainPagePicker_SizeChanged;

        }