Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using COM with Silverlight 4
Message
De
25/08/2010 14:50:05
 
 
À
24/08/2010 21:27:18
Information générale
Forum:
ASP.NET
Catégorie:
Silverlight
Versions des environnements
Environment:
C# 4.0
OS:
Windows XP
Divers
Thread ID:
01478069
Message ID:
01478439
Vues:
46
>Viv
>>
>>Have you set ElevatedPermisions :
>>
>>  <OutOfBrowserSettings.SecuritySettings>  
>>    <SecuritySettings ElevatedPermissions="Required"/>         
>>  </OutOfBrowserSettings.SecuritySettings> 
>
>
>Yes I did. These are the settings:
>
><OutOfBrowserSettings ShortName="SL4Com Application" EnableGPUAcceleration="True" ShowInstallMenuItem="True">
>  <OutOfBrowserSettings.Blurb>SL4Com Application on your desktop; at home, at work or on the go.</OutOfBrowserSettings.Blurb>
>  <OutOfBrowserSettings.WindowSettings>
>    <WindowSettings Title="SL4Com Application" />
>  </OutOfBrowserSettings.WindowSettings>
>  <OutOfBrowserSettings.SecuritySettings>
>    <SecuritySettings ElevatedPermissions="Required" />
>  </OutOfBrowserSettings.SecuritySettings>
>  <OutOfBrowserSettings.Icons />
></OutOfBrowserSettings>
>
>
>>
Even then I think you're limited to where you can write:
>>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-trusted-applications.aspx
>>
>Craig mentioned this and that was the reason. Once I changed the path to c:\temp the sample worked.
>
>>>
>>>Now if I can only find an example of using XML data from a web service in a silverlight grid....
>>
>
>>Any particular difficulty ?
>
>Basically i want to be able to read an XML file either on disk or passed to a method from a web service.
>
>The reason is I am looking at implementing this control:
>http://silverlightcoverflow.codeplex.com/
>into a Silverlight OOB app.
>
>The sample shows getting the data from the Apple website, and using a web service to download the images. But I want to be able to point the app to any folder on my local hard disk (or remote storage for that matter), with images, and it will then read in the list of images in that folder and generate the XMl and feed it to the control in the XML format required by the app.
>
>Most similar code I found use a hard coded array pre filled or access a web service and is not generic enough for my needs.
>
>Since I have only just recently started looking at Silverlight, this is beyond me, so was looking for some sample code to do what I want.

Only had time for a quick look at this. Nice animation!
However to adapt it to your needs you can probably forget the XML part.
If you look in the MainPage.Xaml file you will see that the ItemTemplate for the CoverFlowControl consists simply of an Image control with the source bound to the ImageUrl property of the DataContext. So you need to define your own class to hold information for each image file, put them in a list (preferably an ObservableCollection I guess), make that the DataContext for the page and bind the Image source as neccessary.

Looks like an interesting project. Shout it you get stuck - if I have time I'd like to take a crack at it.......
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform