Image Type and Source

Aug 22, 2011 at 10: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,

Steve

 

Coordinator
Aug 23, 2011 at 12:31 PM

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" ... />

0xfefi

Aug 23, 2011 at 4:44 PM

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

Coordinator
Aug 23, 2011 at 5:16 PM

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