Image Type and Source

Aug 22, 2011 at 9:50 PM

Is there a way to use PackUrl to designate Images? That is how I do it everywhere else in by app, and I'd like to be consistent.

<Image Source="pack://application:,,,/Common.Resources;component/Images/ShortcutSmall.png" />


Thanks in advance,



Aug 23, 2011 at 11:31 AM

Since both Image and ImageSmall properties are ImageSource in NavigationPaneItem as the property Source in Image control
should work fine to put the PackedUrl directly in the value of the property

<s:NavigationPaneItem Image="pack://application:,,,/Common.Resources;component/Images/ShortcutSmall.png" ... />


Aug 23, 2011 at 3:44 PM

Odd, yesterday I was getting an unsupported type specification error; works now.  Thanks!

Aug 23, 2011 at 4:16 PM

wierd... the wonders of coding :)
Always happy to help