Exemple #1
0
        public override void Show()
        {
            if (!ChooserHelper.NavigationInProgressGuard(delegate
            {
                this.Show();
            }
                                                         ))
            {
                return;
            }
            ParameterPropertyBag parameterPropertyBag = new ParameterPropertyBag();

            ChooserHelper.FillCommonPhotoProperties(parameterPropertyBag, "PhotoChooser-");
            int pixelWidth  = this.PixelWidth;
            int pixelHeight = this.PixelHeight;

            parameterPropertyBag.CreateProperty("CropWidthPixels").Int32Value  = pixelWidth;
            parameterPropertyBag.CreateProperty("CropHeightPixels").Int32Value = pixelHeight;
            parameterPropertyBag.CreateProperty("ShowCamera").BoolValue        = this.ShowCamera;
            byte[] buffer = ChooserHelper.Serialize(parameterPropertyBag);
            Uri    appUri = new Uri("app://5B04B775-356B-4AA0-AAF8-6491FFEA5632/PhotoPicker", UriKind.Absolute);

            base.Show();
            ChooserHelper.Invoke(appUri, buffer, this._genericChooser);
        }
Exemple #2
0
        /// <summary>Shows the Contacts application.</summary>
        public override void Show()
        {
            if (!ChooserHelper.NavigationInProgressGuard(delegate
            {
                this.Show();
            }
                                                         ))
            {
                return;
            }
            ParameterPropertyBag ppb = new ParameterPropertyBag();

            byte[] buffer = ChooserHelper.Serialize(ppb);
            Uri    appUri = new Uri("app://5B04B775-356B-4AA0-AAF8-6491FFEA5615/ChoosePhonePropertyOfExistingPerson", UriKind.Absolute);

            base.Show();
            ChooserHelper.Invoke(appUri, buffer, this._genericChooser);
        }
Exemple #3
0
        /// <summary>Shows the contacts application.</summary>
        public override void Show()
        {
            if (!ChooserHelper.NavigationInProgressGuard(delegate
            {
                this.Show();
            }
                                                         ))
            {
                return;
            }
            ParameterPropertyBag parameterPropertyBag = new ParameterPropertyBag();
            ParameterProperty    parameterProperty    = parameterPropertyBag.CreateProperty("PhoneNumberToSave");

            parameterProperty.StringValue = this.PhoneNumber;
            byte[] buffer = ChooserHelper.Serialize(parameterPropertyBag);
            Uri    appUri = new Uri("app://5B04B775-356B-4AA0-AAF8-6491FFEA5615/SaveANumberToAddressBook", UriKind.Absolute);

            base.Show();
            ChooserHelper.Invoke(appUri, buffer, this._genericChooser);
        }