silverlight

zooming in silverlight

Hi, I have created a 3D structure(basically an image) dynamically using kit3D.However,I wanted to zoom only a small segment of the whole structure.My entire image is loaded altogather at a time,so I am not considering using deep zoom. Is there anyway where I can zoom only a part of a dynamically generated image in silverlight?? Thank yo...

Dynamic Control Template in Silverlight

I'm trying to make a button in Silverlight use a control template to change the way it looks. I need to do this dynamically in code (not xaml markup). The Button object has a Template property to which you can assign a ControlTemplate. But how do you stuff UI elements into the ControlTemplate? (In WPF, there is a VisualTree property bu...

Can we identify if WCF Request is coming from our Silverlight APP or some place else?

Can we identify if WCF Request is coming from our Silverlight APP or some place else? ...

How to bind resources string to Xaml in Silverlight

How to bind resources string to Xaml in silverlight? ...

Silverlight RIA Services and Entities , Nested Query

Hi I am currently trying to do a nested query, using RIA Services. The first query works but the second doesn't work. I assume it is because the second query doesn't have the 'ClassAssignment' data object or something? My questions: Why would this not be working? In future I would like know, how is RIA working under the covers, how do...

How to LINK a Silverlight library to the files of a normal Class Library

I have come across a Silverlight project that needed to make use of a normal Classlibrary to do certain functions. Since you can't reference a Classlibrary directly, the project linked Silverlight library to the files. Wondered how this could be done, you can see in the screenshot below to what I am refering to. ...

HCI: make the user wait through everything up front, or amortize?

I'm writing a silverlight app that queries a web service to populate a tree control. Each element will have at least 2 levels of children, so something like this: a +-b +-c d +-g +-h e +-i +-j f +-k +-l The web service API is such that I can only get one level of child nodes at a time, so the first trip, I can get a,d,e,f. T...

How would you send InitParameters to Silverlight in an asp.net mvc app?

Previously, I was passing information to a Silverlight control inside of the Page_Load method. i.e. protected void Page_Load(object sender, EventArgs e) { MainContainer.InitParameters = "info=" + CurrentUserID.ToString(); } In MVC, without the concept of a code-behind, I've passed the user ID as part of the model, but the followin...

Can Silverlight do the following?

Hi folks, Can i do the following in a silverlight page/app? (Note: the silverlight app will be embedded on an ASP.NET MVC website page) :- Display an image from a resource: eg. www.someDomain.com/image.png Url of the image to display is passed into the control (ie. it's not hardcoded, but .. say .. entered into a textbox via the user,...

When to close WCF client?

I've put an instance of the client proxy for the WCF service into a property on the App class so I can get it from anywhere in the app. I am not closing the client, I'm leaving it open for the duration of the app. The main reason for this is that if I were to follow the // Comment in the WCF service mex page (the one you get if you poi...

What's the event that Visual Studio 2008 does after post build event?

I just create a Solution that contains 3 projects. Order by build order Silverlight Application that is included in /ClientBin of ASP.NET Web Application project Windows Form Application that is used to optimize all xap in /ClientBin when Visual Studio pass build (post-build event). ASP.NET Web Application that display Silverlight app...

WCF Silverlight HTTP AND HTTPS

I've got a Sivlerlight app that I want to call from either https or http. I've got it working with one or the other but am having problems making it work with both (with a single web.config) I've found a post on silverlight.net forums that shows how they did it but it is not working for me. http://silverlight.net/forums/t/13275.aspx (t...

Javascript/Silverlight proxy double load delay.

I am creating a Silverlight application which will be heavily javascripted against. To enable JS interaction, I have created the following SL class: [ScriptableType] public class JavaScriptProxy { private string _version; // provided for testing SL-JS integration [ScriptableMember] public void SmokeTest() { HtmlPage.Wi...

Out of Browser in Silverlight2

How can I build a Stand Alone Application with Silverlight 2. 1.I know that Silverlight 3 has the Out of Browser Functionality to build such Applications. But it is in beta and I cannot wait for it. 2. I also had a look at Desklighter(http://www.blendables.com/labs/Desklighter/Default.aspx) which helps to build a executable from a xap...

RIA Services + Entities - Date moving 24 hours earlier in client

Hi All I am currently working on a silverlight project with RIA Services and have seem to come across a bug(or wrote a new one). In a simple query I am retrieving a entity model from the server. In the server side service class a DateTime is correct(to what's in the db) but on the client it seems to go back 24 hours and maybe 10 hours....

Respond to media keys in Silverlight

Is it possible for a Silverlight application to respond to media keys like play/pause and volume? ...

Problem using XmlSerializer to Serialize/Deserialize a class between a Silverlight Library and an MVC App

Here is my situation: I have a solution with three projects: 1) Silverlight App, 2) Silverlight Library, 3) the Asp.net-MVC Web App. In the Silverlight Library I have a class called "MyClass". In the Silverlight App I serialize that class to XML using XmlSerializer and send the XML back to the database. I retrieve and deserialize tha...

What are the pros and cons of these client options in C#? winforms, WPF, Jquery, ASP.NET AJAX, and Silverlight

just wanted to clarify the options for client presentation : 1) winforms - for windows client - older technology 2) wpf - for windows client - newer technology, uses xaml 3) jquery - for web client - uses javascript 4) asp.net ajax - for web client - older technology 5) silverlight - for web client - new...

expression blend coloured regions

Hi, I am working with expression blend and c# to create a silverlight site. I would like to create a map of the world which has many regions. on clicking on the region the colour changes. I have already created the regions. Does anyone know how to do that? Thanks ...

Opening an image on demand with Silverlight 2 WebClient

I'm trying to show some images on my silverlight application whenever user wants to. The images are in a folder in my silverlight project and I don't want the user to download all of them when he/she loads the web page for the first time. I have tried the OpenReadAsync method with a relative address to the image file which is in a fold...