Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
How to get resouces in Resources.LOB ?
posted

Hi,

I'm new to silverlight and Infragistics Silverlight controls. Now I have to research silverlight using Infragistics's controls. So after I walk-through all examples in xamWebTree section. I have some following questions. Please give your spare time to help me.

Q:  BackgroundImageUri="/Infragistics.Samples.Silverlight.Resources.LOB;component/Images/Chrome/Backgrounds/CurlyBlue.jpg"

This path to the image is strange. I think it load images in specific .dll ? Where can I utilize these images ? I find in many folders but can't find these images.

 

Thanks.

Parents
No Data
Reply
  • 2180
    Offline posted

    Hi,

    I suppose you have installed the NetAdvantage Silverlight  Samples. This image is packed in a dll named Infragistics.Samples.Silverlight.Resources.LOB.dll. This dll is in folder ...Infragistics\NetAdvantage 2010.2\Silverlight\Samples\SamplesBrowser\SamplesBrowser.Samples.LOB\Bin.

    The URI is formed correctly - in this case we access an external resource so the URI is constructed in following way -

     

    Resource file - referenced assembly

    Uri uri = new Uri("/ReferencedAssembly;component/<path to the resource>", UriKind.Relative);

     

Children
No Data