silverlight

Midi MediaElement support in Silverlight 3

Hello all, I am trying to build a small silverlight application to support some midi files as well. I've tried using the Media element, but I don't think that it can read midi files. Does any of you know a workaround, without the need to convert the midi file? ...

Making ViewModel Properties Visible To Binding In Silverlight

I am binding an object(named Client) with and ObservableCollection(named Contacts) property to my Silverlight view. My Client class has a few string properties on is and the ObservalbeCollection called Contacts. There is a property on my viewmodel named Client(Which implements INotifyPropertyChanged) that contains the Client object. If I...

How do I reference a TextBox I added to a DataPager's ControlTemplate within a Silverlight UserControl?

Using the Silverlight 3 Release, I created a Silverlight UserControl that contains a DataPager and a DataGrid. I modified the DataPager ControlTemplate and added a TextBox with an x:Name of TestTextBox inside the DataPager's Border right before the standard DataPager buttons, but I can't seem to get a reference to that TextBox in the Use...

Plotting a Silverlight line/area graph by getting data from SQL database

Hi all. I'm very new to Silverlight and programming in general so help me out here. I want to plot a Silverlight line/area graph by getting it's coordinates from a database when the user enters some data. The graph will change its value (by pressing refresh on the browser) when the value in the database changes according to what the use...

Exception calling Silverlight enabled WCF service when using other assemblies

General description I am calling a Silverlight enabled WCF service from a Silverlight application. My service queries a database (SQL Server) and returns values from there. The problem is that the service uses other libraries that do the dirty database work and I get this exception when trying to use the service: Exception System.Se...

How to add a COM reference to Silverlight applications

I am building a small Silverlight application. I wish to be able to add a COM DLL to my application. My current thought is to download the COM DLL with a web client and then add to the project, though as said... how does one add a COM componenet to a Silverlight application? (Is it even possible, security-wise?) ...

How to change x,y origin of canvas to bottom left and flip the y coordinates?

I have a bunch of data points that I would like to two-way bind to points on a canvas. The points assume larger y values are reflected in an upwards direction like most math graphs. How do I change the x,y origin of the canvas to the bottom left corner and reverse it's interpretation of the y coordinate? (I would like to stay in XAML)...

C# check silverlight object size at runtime

How can I find the size of particular object such as Rectangle, Canvas or Glyphs objects in my silverlight application? can I use memprofiler or antz profiler on silverlight runtime? ...

Redirecting connection via Service.svc proxy

I am currently working on a silverlight client, making use of a web server, and an application server. Most of the users sit within our firewall, so they do not have any problems accessing the WCF service running on the application server (through a Service.svc file). However, some users will sit outside of our firewall, and only have ...

Silverlight 3 Tools not showing up in Visual Studio

I downloaded and installed the Silverlight 3 Tools. I want to use the Silverlight server control in an ASP.net page, but I don't have the Silverlight tab in my toolbox. I also can't find System.Web.Silverlight.dll to add it myself. ...

Silverlight crashes FireFox 3.5, IE7, & IE8

One of my users has an HP Pavilion DV4-1430us laptop running Windows Vista Professional 64-bit. She is using the latest version of the Silverlight Plug-In, downloaded on 24 July from microsoft.com/silverlight. While typing in a text box in a silverlight web application my company developed, all three browsers will occasionally crash. Ni...

Scalability of Duplex Polling with Silverlight / IIS

I have been building a client / server app with Silverlight, web services, and polling. Apparently I missed the whole Duplex Communication thing when I was first researching this subject. At any rate, the MSDN article I saw on the subject was promising. When researching the scalability, it appears as if there's conflicting opinions on...

Model-View-ViewModel pattern violation of DRY?

I read this article today http://dotnetslackers.com/articles/silverlight/Silverlight-3-and-the-Data-Form-Control-part-I.aspx about the use of the MVVM pattern within a silverlight app where you have your domain entities and view spesific entities which basically is a subset of the real entity objects. Isn't this a clear violation of the ...

ASP.NET Compiler Error must declare a body because it is not marked abstract...

IN ASP.NET 3.5 I am getting the above error when I try to compile the web service project of a Silverlight application The code line generating the error is below ' public List GetAccounts();' namespace BegSilver.Web { [ServiceContract(Namespace = "")] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequireme...

What are the drawbacks with building business apps in silverlight contrary to html

I have little experience with silverlight development still but with the potential of silverlight (office 2010 live) and similar adobe air apps are there any reasons for not building your business apps for web using silverlight. As I see it building business apps using html and javascript is only an ugly workaround for enabling apps ru...

What is the best way to display a grid of a large number of items in Silverlight?

I am currently working on a Silverlight2-based attendance register. I want to create a visualisation of attendance over time for students and classes, but am struggling to come up with a good way of doing it. The sort of thing I'm imagining is a grid with students on the vertical axis and date along the horizontal, with a symbol at the i...

Binding to IsolatedStorageFile variable AvailableFreeSpace in Silverlight

I am trying to display a simple text block that shows the value of AvailableFreeSpace from IsolatedStorage. That is: System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplication().AvailableFreeSpace It needs to dynamically update as the available storage changes. I know this is probably basic but I can't figure out how to...

Declare DateTime in XAML in Silverlight

I succesfully created some constants in Silverlight's XAML like that <sys:Boolean x:Key="foo">True</sys:Boolean> However, when I try to do the same with a DateTime (to initialize some DatePicker controls) <sys:DateTime x:Name="myDate"/> the system throws an XamlParseException "Unknown element: DateTime. [Line: xxx Position: xxx]...

Howto RadioButtons and MVVM pattern

I'm using PRISM (and thus the MVVM pattern). I've got a complex DateTime picker view with radio buttons. The user can pick today, yesterday, a date, a week of a year, etc. I use radio buttons for the different choices. What's the best way to do that in MVVM? I really can't think of a clean way. I could create lots of custom behaviors ...

How often is the Silverlight Access policy accessed?

Hi As you may well know, it is required to host an access policy (clientaccesspolicy.xml) on your web server if you want SL apps to perform HTTP requests, or you need to host an access server on port 943 for socket connections. My app makes many short requests and latency is important. I want to know if this access policy file is acce...