Ejemplo n.º 1
0
        private void ApplicationBarIconButton_Click_1(object sender, EventArgs e)
        {
            UploadPhotosSoapClient soapClient = new UploadPhotosSoapClient();

            this.toggleButton.IsEnabled = false;
            this.flag = !this.flag;
            this.toggleButton.IconUri   = this.flag ? new Uri("/Assets/AppBar/add.png", UriKind.Relative) : new Uri("/Assets/AppBar/minus.png", UriKind.Relative);
            soapClient.ToggleCompleted += (o, args) =>
            {
                this.toggleButton.IsEnabled = true;
            };

            soapClient.ToggleAsync();
        }