silverlight-3.0

Silverlight 3 Font Embedding and the Back Button Issue

I've hit an odd snag in font embedding. I've embedded the webdings.ttf font as outlined in Tim Heuer's blog article Embedding fonts in Silverlight 2 This works well but if I navigate away from the page with my Silverlight app to a non-Silverlight page (plain .aspx or html page) and then navigate back using the back button, the app no l...

How to display an image in Silverlight?

This should be simple, but... I created a folder in my solution called Images. I dragged an image into it. How do I now display this image on a Page or View? ...

Silverlight, RIA Services, MVC2P2 = No Data

I am having trouble upgrading my current project to use RIA Services. I added all the necessary web.config changes but still no luck. I everything compiles fine but when I hit the page using the datacontext I get an error. I debugged with fiddler and I'm getting a 404 on one of the request. I am getting back headers in my grid so some co...

Silverlight ListBoxDragDropTarget Errors in Dynamically Added Lists

I am using the Silverlight Toolkit ListBoxDragDropTarget and running into errors using it with dynamically added lists. I am dynamically adding user controls containing lists to a layout Grid. When I drag an item from one list to another in the Grid, I get the following Exception. throw new Error("Unhandled Error in Silverlight 2 ...

Can not use keyboard input to a textbox control in Silverlight 3 when the application is in full screen mode

It appears when I move the application into full-screen mode - I cannot enter text into a text box control. It seems that the keyboard events are being ignored. I have found an article here (http://forums.silverlight.net/forums/t/142460.aspx) documenting the same problem. I also have read that in Silverlight 4 if an application is trust...

How to get message from server after upload the file in silverlight 3?

I follow the example in to upload file to server successfully http://www.c-sharpcorner.com/UploadFile/nipuntomar/FileUploadsilverlight03182009030537AM/FileUploadsilverlight.aspx is it possible to get a string message from server on the webclient OpenWriteCompleted event? ...

Fingerprint Reader

Is there a way to access a fingerprint reader from a silverlight and/or ASP.NET application? I have a web application that I'd like to implement fingerprint scanning in. Is this possible in Silverlight or ASP.NET? ...

WCF RIA Services Silverlight 3.0

Hi, I have downloaded WCF RIA Services Beta from the following website: WCF RIA Services Beta for Visual Studio 2008 SP1 http://www.microsoft.com/downloads/details.aspx?FamilyID=76bb3a07-3846-4564-b0c3-27972bcaabce&displaylang=en#filelist But I am unable to add a reference to the following assembly : system.Windows.Ria.Data I se...

How to Programmatically Modify a DataTemplate?

I'm trying to programmatically add events and elements to a DataTemplate in a Silverlight 3.0 app. I have a User Control with a dependency property where I would like to take the template that's set, tweak it, and then set the modified version to an inner control. The idea I have is to take the DataTemplate that comes in, read its XAML,...

How can I find out the Duration of a Storyboard in Silverlight?

I have a situation where I need to determine if I've reached the end of a Storyboard, and then need to seek to the end of it. I want to do: storyboard.Seek(timespan); However, if timespan is longer than the storyboard's duration, I get an exception. If I look at storyboard.Duration.TimeSpan I get an error because the Duration is ...

Pitfalls of (Mis)Using C# Iterators to Implement Coroutines

I am writing refactoring a Silverlight program to consumes a portion of its existing business logic from a WCF service. In doing so, I've run into the restriction in Silverlight 3 that only allows asynchronous calls to WCF services to avoid cases where long-running or non-responsive service calls block the UI thread (SL has an interestin...

Load a property in a batch in ADO.Net Data Services in Silverlight

I'm using ADO.Net Data Services (Astoria) in Silverlight 3 and I want to delay loading properties on an entity until after the initial load. However, when I'm ready to load them I'd like to batch the load requests together. // this is what I want to avoid var c = (from c in ctx.Customers.Expand("Address,Phone,Email") where c.I...

Data Changed question on Dataform of Silverlight using RIA

I am using RIA service to bind with my dataform. When I modify any field of the dataform and then move the focus to other field, the data form will mark up a * next to the title of the dataform. But I found it is not worked after I using WCF RIA service, the new one. Any hints? Thanks~~! ...

does silverlight 3 support GUID in xaml?

I have a question similar to this - Does Silverlight xaml support Byte Data Type. Does silverlight xaml support Guid datatype. I m trying to set Guid in my xaml which is a declared as property in c# class library. is this possible? I tried using xmlns:sys="clr-namespace:System;assembly=mscorlib" and using <sys:Guid>F16095D1-1954-...

Siliverlight 3 Navigation between user controls?

Hi all, Im just starting to get to grips with silverlight 3, coming from ASP.NET and Flex. I have followed the new navigation tutorial here and read through the authentication and role management tutorials also. So, i have a main page, which has a frame, inside of the grid, and several views. These are all navigatable and working f...

Synchronize keyboard selection with SelectedItem in ListBox

When using a Silverlight ListBox, I can programmably select an item by assigning to SelectedItem or SelectedIndex, and I can ensure that the selected item is visible to the user using the ScrollIntoView method. Doing this the item is correctly selected (the background of that item is blue), but the keyboard focus is left on the first it...

Using Silverlight Bing Maps control for commercial apps

I am developing a commercial Silverlight application with the new Bing Maps control (Version 1.0), and so far I have not been able to find any answers on how to associate transactions with my Bing Maps developer account. I know the control is not free to use for commercial purposes, so there must be a way for me to give it a Bing Maps to...

Editing newly added row in Silverlight 3 DataGrid using MVVM

I am trying to use the Silverlight 3.0 DataGrid with the MVVM design pattern. My page has a DataGrid and a button that adds an item to the collection in the VM using a command (from the Composite Application Library). This works fine, and the new item is displayed and selected. The problem I can't solve is how to begin editing the row. ...

How to communicate between the Views in the Silverlight 3.0 application?

I am building a Silverlight 3.0 app based on the Silverlight Navigation Application template. One road block I ran into is communicating between the Pages. For instance, I am in one Page, and I want to kick off another page and send it some data. I am at a loss as to how to do this. Any ideas? ...

Looking for Tree Grid control for Silverlight

Quick question: Is it somewhere available - preferably free / opensource or at reasonable price? EDIT To be more precise, there's an example of winforms control (SandGrid from Divelements) what I'm looking for. Forming a tree is important, grouping by isn't necessary. ...