A question about DockContent.Icon in v1.3

Dec 15, 2010 at 6:53 AM

 

I have a question about Icon. I don't know how to use DockableContent.Icon.
In code behind it is failed. The icon can't show out.

BitmapImage bi=new BitmapImage();
bi.BeginInit();
bi.UriSource = new Uri(@"Resources\Images\Store16.png", UriKind.Relative);
bi.EndInit();
dockContent.Icon = bi;

And how to write it in xaml?

And I'm sure the icon path is correct.

Thanks,
Ray