silverlight-3.0

Silverlight 3 Out of the Browser Updates

I have a few users that are using a silverlight app that aren't recieving updates when a new release is published. Isn't this suppose to be automatic or perhaps I'm missing an option somewhere? I was also starting to think that maybe the XAP file is cached and I some how need to prevent that. Any thoughts out there? ...

MVVM in Silverlight - Where does async service logic go?

I have the beginnings of my first Silverlight MVVM app and need to know where I should put business logic including async service calls. Does it go on the page hosting the view? Do I simply set a property of the ViewModel which updates the view? ...

Can I use custom image as map with Silverlight 3?

I have to develop a silverlight application which will run intranet. It will show local town map and have some images over the map like pushpins. I can use Deep Zoom for map application. But adding images and events for images is not supported. For silverlight 2, there is DeepEarth api for this. But How can I do this with Silverlight ...

Silverlight controls not loading

I'm working on a Silverlight 3.0 app, and about 1 out of every 10 or 20 times, a UserControl I've created won't load with the rest of the application. The rest of the application loads and functions correctly. So far, I've been exclusively launching this from visual studio, but I'd like to be sure that this isn't something that will happ...

How to add graphics on top of a multiscaleimage?

I want to add graphics to a multiscaleimage. I use the project that Deep Zoom Composer auto generated when creating a multiscaleimage. Displaying the multiscaleimage from VS2008 works. I've tried this and added the graphics to the maincanvas, without any results: <Grid> <Canvas Name="maincanvas"/> <MultiScaleImage/> </Grid> Edit: W...

Possible to Create Project Choosing either Silverlight 3 or 2

On my computer according to 'Add Remove Programs' I have installed: Microsoft Silverlight Microsoft Silverlight 2 SDK Microsoft Silverlight 2 Toolkit July 2009 Microsoft Silverlight 3 SDK Microsoft Silverlight 3 Toolkit July 2009 Microsoft Silverlight 3 Tools for VS 2008 SP1-ENU When I create a Silverlight project, I am gue...

Poll mechanism in Silverlight without a DB

Hi all, I need to implement a poll mechanism (simple questions with yes/no options) in Silverlight, but I can't use any database. The client says the only available storage is xml files. Do you think this is a viable option? I'm thinking about dealing with file integrity and any concurrency issues that may arise from this. It would req...

How to get style in code from resource dictionary?

If you put style in app.xmal, then you can get the style with the code like: Style = Application.Current.Resources["myStyle"] as Style; But if I put style in a dictionary resource of a separate file Styles.xmal like: <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> ...

How to make ChildWindow blocking

The ChildWindow is a modal window, but it does not block. Is there any way to make it blocking? I basically want a ShowDialog() method that will call ChildWindow.Show() but then not return until the user has closed the ChildWindow. I tried using Monitor.Enter() to block after ChildWindow.Show(), but the ChildWindow never rendered and the...

Cleanest single click + double click handling in Silverlight?

I've been finding various methods of dealing with double click and then the authors slap on some if code for handling single clicks. Is there a standard now in Silverlight 3 that everyone is using to handle both a single and a double click on listboxes? ...

How to use UIHint in Silverlight ?

Can I use UIHint in Silverlight ? How to use it? If anybody have idea plz give it with simple example. ...

Using IEditableObject In Silverlight

I have a object that implements the IEditableObject interface exposed on a viewmodel bound to a Silverlight page. How/Where do I call the BeginEdit, CancelEdit and EndEdit methods? How can I constrain only objects implementing this interface to my page? I am NOT using DataGrid or DataForm controls. I am using Label, TextBox and Descr...

What't request to create an instance of user control dynamically?

I tried to load assembly dynamically from a xap file like below: AssemblyPart asmPart = new AssemblyPart(); StreamResourceInfo streamInfo = Application.GetResourceStream(new StreamResourceInfo(xapFileStream, "application/binary"), new Uri(source, UriKind.Relative)); Assembly asm = asmPart.Load(streamInfo.Stream); FrameworkElement elemen...

A Silverlight application with .net Ria services and SilverlightFX

Hi, I am starting to write an application in Silverlight with RIA services and SilverlightFx. Now this application is a pretty big one has has lot of interaction between controls. As an estimate it will have around 60-70 user controls. Now my questions are.. Is it good to choose .Net Ria and SilverlightFx? (My view is..It is not goin...

Silverlight 3.0 : How do I get grid children by x:Name ?

Let's assume that I've got XAML representing a Grid with some children in it, each child is a different control, with a x:Name. How do I "get" those controls from code by name ? ...

Getting data out of a Silverlight control

I am relatively new to Silverlight development and I am trying to figure out how to get data out of a silverlight control that I have made. I have a Silverlight control that gathers a bunch of graphical data points. The Silverlight control is embedding in a asp.net webforms application. The page that is displaying the control also doe...

Blend 3 for ASP.Net?

I've seen a great video (Mix09) of how easy it is to quickly sketch a web site using Blend 3 and specifically Sketch Flow. What I don't dig is how to mobilize this for ASP.Net. Blend lets you "create websites and applications based on Silverlight 3" but how do you use Blend's output with ASP.Net? ...

Silverlight 3.0 Binary Serialization Support?

Can I deserialize an object in the Silverlight 3.0 runtime that was serialized using the full .NET 2.0 runtime using the BinaryFormatter? I am using the following code to serialize an object to a ByteArray which we write to a DB table: MemoryStream serStream = new MemoryStream(); BinaryFormatter binFormatter = new Binar...

Deleting data in Silverlight 3 with .NET RIA Data Services

We're trying to play around with RIA Services. I can't seem to figure out how to delete a record. Here's the code I'm trying to use. SomeDomainContext _SomeDomainContext = (SomeDomainContext)(productDataSource.DomainContext); Product luckyProduct = (Product)(TheDataGrid.SelectedItem); _SomeDomainContext.Products.Remove(l...

Sync SelectedItems in a muliselect listbox with a collection in ViewModel

I have a multi-select listbox in a SL3 app using prism and I need a collection in my viewmodel that contains the currently selected items in the listbox. The viewmodel doesn't know anything about the view so it does not have access to the listbox control. Also I need to be able to clear the selected items in the listbox from the viewmod...