silverlight-4.0

Why won't my Silverlight Application load in Internet Explorer?

For some strange reason my Silverlight 4 application isn't loading in Internet Explorer. I see no error messages, just a blank screen. It works fine in Chrome. Any ideas? ...

WCF Data Services UpdateObject not working

Hi, I have a Silverlight client with a grid getting data from WCF Data Service. Works fine. However if I want to update some changed grid row, the service data context UpdateObject is not working: DataServiceContext.UpdateObject(MyGrid.SelectedItem); foreach (Object item in DataServiceContext.Entities) { // } ...

Silverlight f5 debugging error

I am attempting to create a simple silverlight 4 application in visual studio 2010 ultimate running on windows 7 x64 and I am unable to use f5 debugging. The error is: Unable to start debugging. A fatal error occurred. For more details, please see the Microsoft Help and Support web site. HRESULT=0x8004005. In researchi...

SL 4: Moving a Bezier segment - use a transform?

Hello, In our Silverlight 4 app we use a Path with a single BezierSegment to connect two objects. When one of the objects moves, it is easy enough to change the appropriate end point of the path. However, we would like to update the control points (BezierSegment.Point1 and BezierSegment.Point2) appropriately. Is there a way to to use a ...

silverlight 4 project into a single solution or seperate?

i started off with a new silverlight 4 project in a seperate solution while my web app, database, bll/dal and web services are in a seperate solution. I quickly ran into the whole clientaccesspolicy.xml problem when silverlight client tried connecting to my other solution running in http://localhost:4415/ but that just doesn't work with ...

What are the important (most common) features of Silverlight 4.0

I am working on reading up on Silverlight 4 and wanted to know what are the most commonly used functions of Silverlight (so I can put a stronger emphasis on them) as opposed to features that are rarely used. ...

Silverlight: how to handle standard assemblies

A usual Silverlight task: to make the size of xap-file smaller. There are a lot of hot-to-do manuals that explain how to make your application modular. But I didn't find anyone that explains how to make "modular" standard libraries. The biggest part of my xap-file (1.7Mb, when overall size is 1.8Mb) is occupied by standard assemblies: a...

Bind datagrid column to a collections index (Silverlight 4)

I have a datagrid bound to an ObservableCollection of objects. I want to show the index in the first column of the grid. There's numerous example on how to do this based on the LoadingRow event but I need my index to be dynamic - they can add items and remove items from the ObservableCollection so it's easiest if I can bind directly to t...

Silverlight 4 HttpWebRequest throwing ProtocolViolationException

I'm invoking a REST service via http which returns a stream as the response. My client code looks like so: Uri uri = new Uri(remoteAddress); var webRequest = (HttpWebRequest)WebRequest.Create(uri); webRequest.Method = "GET"; webRequest.ContentType = "multipart/mixed"; ...

How to access a value based on siblings or parent in datagrid databinding

Sorry for the wordy title - I am battling to work out if my problems are caused by Bad class design (likely) Ignorance (very likely) Both (most likely) I have spent ages googling but due to not really understanding my problem it's harder to find the solution. Basically, I have a "Day" class which has an ObservableCollection of Perio...

how to execute events in mvvm pattern for silverlight

Can anyone provide a short example of how to execute an event within the mvvm pattern for silverlight? In reading I have seen references to where silverlight does not support commanding? If that is the case how then what is the most common practice to initate methods in the mvvm pattern? Is a third party framework need or can this be acc...

How to add text in Deep Zoom Composer?

Hi, I want to compose my own project in deep zoom composer however I would like to know on how to add text per image zoomed in just like the hard rock memorabilia I want to consume it, using silverlight 4.0 As you notice, under right pane, it has its description about the image. Thank you. ...

How to raise mouse events from code behind in different positions of screen?

How to raise mouse button events from code behind when we have only mouse position? I need to raise mouse events from code behind in different positions of screen. ...

Button clip problem Silevrlight 4

I'm working on an interactive map. I'm using Silverlight 4 within VisualStudio 2010. My problem is that i can't assign a geometry to Button Clip property: Code: bouton1.Clip = (PathGeometry)Forme.Data; //forme is a class that inherits from Path when i run my application i get an ArgumentException: The value is not included in the...

silverlight webbrowser control InvokeScript error

I am running OOB silverlight application where I have a WebBrowser control but I am getting this error when I call InvokeScript:- Attempted to perform an unauthorized operation. Is it because it's OOB ? ...

How to modify silverlight combobox data display

I have a combobox defined as follows: <ComboBox x:Name="cboDept" Grid.Row="0" Margin="8,8,8,8" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120" ItemsSource="{Binding Source={StaticResource cvsCategories}}"> <ComboBox.ItemTemplate> <DataTemplate> <StackPanel...

What is the difference between ContentTemplate and Content of ContentPresenter in ComboBoxItem related ControlTemplate

I am not knowing what to use to override an existing template (either ContentTemplate, Content). Imagine I have the following: <Style x:Key="ComboBoxItemStyle1" TargetType="ComboBoxItem"> . . <ControlTemplate TargetType="ComboBoxItem"> . . <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" C...

How to add service reference in Silverlight app for Alfresco service(webscript)?

In Alfresco, Add a testing web script helloworld.get. and it's working fine by following url testing: http://myserver/alfresco/service/helloworld?name=myname Then I want to test if I can access this web script in Silverlight application. I tried o add ServiceReference with following uri: http://myserver/alfresco/service/index/uri/ But ...

Any example on binding Silverlight Combobox with both text and image from database

I am working with Northwind and using WCF RIA (with EF 4.0) to pull data on to Silverlight client. All I am trying to accomplish is to have ComboBox showing list of Categories with both CategoryName and Picture from database. I am using ValueConverter to convert bytes to bitmapimage, but getting Catastrophic error. Anyone has any Comb...

using MVVM light messenger with Silverlight 4 ChildWindow dialog class

Greetings! Am enjoying using MVVM light -great framework - has made my life much easier, and has removed a number of barriers that were proving difficult to overcome.... Question: I am attempting to setup a custom dialog box for editing messages users send to each other. I am attempting to construct a silverlight custom dialog box usin...