How to set Background of a Button without flicker?
问题 I am trying to change the Background of a button to an image source. I want to load that image in memory when we navigate to the page so that it doesn't flicker the first time it shows. On Windows Phone, I was able to create the image source as such: StreamResourceInfo resourceInfo = Application.GetResourceStream(uri); BitmapImage bitmapSource = new BitmapImage(); // Avoid flicker by not delay-loading. bitmapSource.CreateOptions = BitmapCreateOptions.None; bitmapSource.SetSource(resourceInfo