Example #1
0
        private void ShowImagePopup()
        {
            AlbumArt.RetrieveFullSizeImage();
            if (ImagePopup != null && !ImagePopup.IsOpen)
            {
                if (!App.UsePreSP1Compatibility)                 //NearestNeighbor scaling was introduced with SP1
                {
                    if (Properties.Settings.Default.ShowPixelsWhenZoomed)
                    {
                        RenderOptions.SetBitmapScalingMode(ImagePopup.Child, BitmapScalingMode.NearestNeighbor);
                    }
                    else
                    {
                        RenderOptions.SetBitmapScalingMode(ImagePopup.Child, BitmapScalingMode.Unspecified);
                    }
                }

                CoerceValue(ImagePopupWidthProperty);
                CoerceValue(ImagePopupHeightProperty);
                ImagePopup.IsOpen = true;

                if (IsPopupZoomed)
                {
                    StartPanning();
                }
            }
        }
 public SynchronousFullSizeImageStream(AlbumArt albumArt)
 {
     mAlbumArt = albumArt;
     mAlbumArt.RetrieveFullSizeImage(mWaitForImage);
 }