Example #1
0
        async private void pictureList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ImageItem       i      = (ImageItem)pictureList.SelectedItem;
            WriteableBitmap bitmap = await i.GetPictureAsync();

            double TargetHeight = this.ActualHeight - 20;
            double TargetWidth  = this.ActualWidth - 20;

            imgSelectedImage.Height = TargetHeight;
            imgSelectedImage.Width  = TargetWidth;
            imgSelectedImage.Source = bitmap;
        }