silverlight-3.0

SL3 and WCF duplex on long running UI thread

Hi, I'm using SL3 and google maps. I get the coordinates of points to draw on the map through a duplex HTTP WCF service. The client proxy is created through the svcutil tool. It works fine until I get plenty of points to draw on the map. When that happens google maps takes a long time to draw stuff on the map and it has to do it on t...

data not deleted from DB when removing items in RIA Services

I have a Silverlight3 client consuming an unmodified/code-generated DomainService through RIA Services with a Linq-to-SQL back end. Is this the correct way to delete a row from the database? this.context.Albums.Remove(this.context.Albums[0]); this.context.SubmitChanges(); The SubmitOperation comes back with no errors, but no rows are...

Accessing application members?

Let's assume that In the App.cs - I'd add a field to the class representing the application. Can I access that field from the app's pages? If so, how can I do that? Am I correct to assume that once initialized this member field would be "alive" for the duration of the application's runtime ? ...

silverlight 3 datagrid drag-drop column vertically

Is it possible to allow a datagrid column to be dragged vertically and dropped into an area above the datagrid which triggers it to group by that column? If so, how would i best implement this into a silverlight 3 application? Heres an example of what it could look like: http://www.syncfusion.com/content/en-US/products/feature/windows-f...

Pass values from one to another page

How we can pass the values from a child window to the parent window in silverlight 3 by using Properties (ie Databinding). In my work, it includes a parent window and a child window. The child window contains a text box, which returns a value after the hitting OK button it to Parent window. I already did this by using message sending an...

How to create a total column for silverlight 3 datagrid

I want to add a total for my int column inside my silverlight datagrid. How to do it? ...

Get string under a mouse hover from wrapped Silverlight TextBox

Hi, when hovering my mouse over a wrapped textbox, I want to get the word or text position immediately under the mouse. I've seen some samples for a single textbox, like this one, but I have a wrapped textbox. I think I might be able to do this if I had a MeasureString function but I don't have that either in Silverlight (would be usefu...

Silverlight deep zoom without asp.net?

I want to use deep zoom in Silverlight, but it seems that the images don't get sharp when I'm using my Silverlight application in a standalone html file, and not through iis. I'm able to zoom in and out, but the images is blurred. This works fine if I'm using a asp.net web site. Is it at all possible to use Silverlight deep zoom without ...

How to crop and zoom image using Slider?

How to crop and zoom image using Slider? Two slider: one is for X other one is for Y (two dimensions) ...

"Silverlight 3 Jumpstart" book, is it worth to read?

There are several Silverlight 3 books available right now on Amazon, but some of them are based on BETA version - which I don't like. Silverlight 3 Jumpstart book is based on the Release version instead and looks like a good book to read (based on what I can read on Chapter list). What do you think guys? Have you read that book? Should...

image zoom with slider

How can I do zooming picture with a slider ...

Silverlight - Good for Internet Business Application ?

I've heard the comment several times, once in one of Shawn Wildermuth's podcasts, that Silverlight is great, but might not be so good for 'entire' internet applications. This comment never get's amplified, but the implication seems to be that you would use Silverlight in conjunction with standard aspx web pages. So far, the only downsi...

Silverlight - Taking a "screenshot" from within silverlight itself?

This is kind of vague as the control has not been designed yet and I thought I would ask before going with it. I will have a control that shows an object within Silverlight. The user can rotate the object etc. Now, the user needs to be able to copy what they see to an image. Is this possible somehow, or do I have to render it somewhe...

Three-column design: one static header, one side-bar with v-scroll, one center-box with v/h-scroll

How would you code this design: Update: Here's where I'm at: <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" MinWidth="200" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <!-- v-scroll on contents --> <StackPanel x:Name="sidebar" Grid.Column="0"> <StackPanel x:Name...

Silverlight 3; switching to culture zh-Hans throws exception

I'm trying to localize my Silverlight 3.0 app to Simplified Chinese. However, when I attempt to switch to that culture (zh-Hans, according to http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo%28VS.95%29.aspx) with this code: var currentCulture = new CultureInfo("zh-Hans"); Thread.CurrentThread.CurrentCulture = cu...

SilverLight Out of Browser Problem

I am new to SilverLight and trying to use the "Out of Browser" option. I have selected "Enable running application out of the browser" and set settings, windows title, etc. The app compiles and runs without errors but I do not get the option to install when right clicking in the browser (just the standard SilverLight Settings option). ...

How can I set initial values when using Silverlight DataForm and .Net RIA Services DomainDataSource?

I'm experimenting with .Net RIA and Silverlight, I have a few of related entities; Client, Project and Job, a Client has many Projects, and a Project has many Jobs. In the Silverlight app, I'm uisng a DomainDataSource, and DataForm controls to perform the CRUD operations. When a Client is selected a list of projects appears, at which p...

Is it possible to validate XML against an XSD in Silverlight 3?

Is seems like all the commonly-used classes for XMLValidation, for example XmlValidatingReader, are absent (or present "for interface compatibility only") in Silverlight. Is there any way to validate XML against an XSD schema in Silverlight? ...

Data transfer between Silverlight controls

I'm making an ASP.NET based website in which certain pages host Silverlight controls. If I have a control in page A which needs data from another Silverlight control in page B, how would I send this data from one control to the other. The Silverlight controls are different custom silverlight controls made by myself, then added to my AS...

Image cropping in Silverlight 3

I've found a solution that looks quite elegant but i don't understand its behavior. If i apply the cropping algorithm before adding my image to Canvas.Children collection it does not work. Why? Ideally i need a function like Image Crop(Image source, int X, int Y, int width, int heigh) which returns a new cropped Image instance and does n...