Toast Prompt Image Missing

Jul 19, 2011 at 5:21 PM
Edited Jul 19, 2011 at 5:49 PM


Is it by design that if I don't have a title property filled in, the image property doesn't do anything? In my example, if I add in an image and a title, the image shows up. If I remove the title property, the image doesn't display.


 Coding4Fun.Phone.Controls.ToastPrompt t = new Coding4Fun.Phone.Controls.ToastPrompt();
			  t.Message = "You just earned the  medal!";
			 // t.Title = "title"; //uncomment and image does show.
			  t.ImageSource = (BitmapImage)Application.Current.Resources["imgFollowUser"];
			  t.MillisecondsUntilHidden = 10000;

Edit: if I set the TItle to be " " it seems to load properly.



Jul 20, 2011 at 4:43 AM

quick glance at XAML in the generic.xaml, this is happening since I bind the image's height / width to the title. 

Long story short, Valid bug.  If you want to create a real bug on it, it is a real issue.

I think anything to correct it will cause a "breaking change" with quotes.  Basically only real way i found to correct this is to put a Stretch="None" on the image.  If anyone was expecting the prompt to do the resizing for them will have to create an image to their sizing, it will fail.  It looks like 26x26 is the proper sizing for the image.

Lemme play with this a bit more. 

Jul 21, 2011 at 4:19 AM

Fixed in revision: 68759