silverlight-3.0

how to play a swf file in silverlight

how to play a swf file in silverlight application project created in c# ...

Embed iframe in Silverlight Application

I was wondering if there is some silverlight control in which I could basically use as an <iframe> ... I would like to embed a page into my silverlight application in a panel. Any ideas? ...

How to show directions to neares places from current location using MKMapView

I am new to using MapKit on iPhone. On Google Maps, I have a current location and push pins to indicate nearest places around current location. (The co-ordinates of all are hard-coded as on now). Now, How to do the following: 1. Display a green arrow (right/left arrow) pointing to the nearest push pin location from current location? 2....

Is it possible to use Bings street view with ASP.NET or Silverlight?

Hi I wont write web application, which will use street view of Bing(or Googles one if it can be used by ASP.NET or Silverlight). I found SDK for Bing map: http://www.microsoft.com/maps/isdk/silverlight/ But I need streets 3D view. Is it possible? Thanks. ...

Bing Maps pushpins appearing on top of map in Germany(latitude values getting automatically set to 0)

Hi, I have a Silverlight Bing Maps application where I plot the pushpins based on their latitude and longitude values on the map. Although the application works great in the US, the same application when viewed by our team in Germany ends up having all pushpins rolled up to the top of the map(latitude values get set to 0 by default). An...

ReBind Controls using PRISM pattern in Silverlight

I have been trying to work with the Composite Application Library (Prism) and I have set up a pretty standard pattern that I have followed off Microsoft's tutorial. Basically, the View is injected into the Region. The View is dynamically built, adding controls and so forth all programmatically. I have a command that gets fired and on p...

get new Item from Dataform using AddingNewItem event silverlight 3?

Hi All, I am working on a sample project using SL 3 and WCF RIA Services. I have a TeleCallLog page, Here I am using Dataform for CRUD operations. I want to provide separate interface for add new Employee(I am using Autocompletetextbox to show the history of callers). Is there any possible way to get the NewItem from Dataform and the...

Silverlight 3 set focus to UIElement by name?

I'm doing some validation, I want to do the validation in the ViewModel (yes using MVVM pattern). this is what I am after roughly: SearchResult srs = _viewModel.Search(); if ( srs.Result == Result.Failed ) { MessageBox.Show(srs.ErrorMessage); SetFocusToControl( srs.ControlNameWithError ); } the SetFocusToControl() is what requir...

MaxLength for AutoCompleteBox in Silverlight

I use an AutoCompleteBox control in my project. Now I need to restrict the length of text a user can enter, e.g. by the maximum length 50 characters. For this case, TextBox has the MaxLength property, but AutoCompleteBox hasn't. Also, AutoCompleteBox doesn't expose TextBox's properties. I tried to resolve the issue in this way: private...

Silverlight 3.0 timepicker?

It looks like the silverlight 4 toolkit (the latest version) has a timepicker ... but what options are there for silverlight 3.0. It is unclear but just from the wording it seem the latest toolkit works with 4.0 only. thanks ...

Network error handling in silverlight 3

Hi all. We are writting silverlight3 application, which use Tcp connction. Our project use client server architecture. Client part is silverlight application, and server part is winform application. We use TcpClient and TcpListner for connection. We can handle following errors: 1. user shut down 2. users network cable unpluging 3. server...

Loading same silverlight application with different parameters!

I want to develop a silverlight application as follows - I have a text box and i use this textbox to search for a specific keyword. I create a tree view structure based on the search criteria. When i right click on a node and click on a context menu, i want to open the same page in different browser and start the search automatically wit...

Scroll image by dragging the mouse

I have an image inside a scroll viewer and buttons to zoom in and zoom out. Now when the image is zoomed, i want to be able to click on the image and drag in any direction as if i was scrolling in those directions. How to do this? thanks. ...

Validation with DataAnnotations in Silverlight getting a ResolutionFailedException.

I am trying to make a small proof of concept example that employs validation for my model, using the System.ComponentModel.DataAnnotations namespace. What I am trying to do here, is make sure that user input is between a specified range, using the supplied [Range] attribute. I get a run-time exception that says Resolution of the depend...

application for relating a list of users

Hi, I need an Silverlight application for relating a list of users. Scenario is as follows First of all i need to list some users. each user will be in the form of a shape(eg: circle or rectangle).I can move each user to appropriate locations. I should be able to draw a line between two users. when i click a save button this relation has...

Silverlight DoubleAnimation causes WCF service response delays

I have Silverlight application that calls WCF services. During the call it shows fullscreen animation - spinning circle on top of semi-transparent modal popup. The problem is, if animation is shown, the service calls are often finished with big delays (if at all), especially if there're multiple calls. If I remove one line to .Begin() an...

Create a Mirrored control in Silverlight 3

I want to be able to dynamically mirror a silverlight control. suppose i have a stackpanel and two buttons inside | >>(button1) | >(button2) | When i flip it, the result will be |< (button 2)|<< (button1)| How to do that? ...

Trapping a post data binding event for Silverlight

I have a series of controls that are created at run-time and then added to my Silverlight application layout grid. I was wondering if there was some sort of event that I could trap AFTER data binding has occurred. I would like to do some post processing on the controls after data has been bounded from the DataContext. I have implemented...

How Do I Unit Test Silverlight 3 in VS2010?

I am currently working on a project that uses the Silverlight 3 SDK and I want to create unit tests for my Silverlight code. I want these tests to not have to run in a browser context. I have referenced the Silverlight Unit Testing binaries that come in the SDK (Microsoft.Silverlight.Testing and Microsoft.VisualStudio.QualityTools.UnitTe...

Bad anti-aliasing when using WriteableBitmap in Silverlight

Hi, My silverlight program draws thumbnails as shown below: System.Windows.Controls.Image image = new System.Windows.Controls.Image(); // BitmapImage bitmapImage contains a big image image.Source = bitmapImage ; ScaleTransform transform = new ScaleTransform(); transform.ScaleX = 0.1; transform.ScaleY = 0.1; image.RenderTransform = trans...