silverlight-3.0

Can a Silverlight 3 out of browser application (OOB) host a html area?

Is it possible to include a html area in a Silverlight 3 out of browser (OOB) application? Due to the fact that no html/dom bridge is accessible the DIV overlay does not work as far as I know. ...

Silverlight 3 Video Player

Hi All, I need to develop a Video Player component to consume/play publishing points (On Demand and Live) from Media Services. I use Silverlight 3. I got a prototype working with SL 3 'Media Element' control. Since the control lacks any generic media player functionality (play/pause/seek etc...) I need to develop on top of it. But my ...

How to implement paging in Silverlight 3 datagrid?

I was trying to implement Grouping and paging in silverlight 3's datagrid, I found ways to do the both with help of PagedCollectionView class, but the problem is I need tradition ASP.Net datagrid like paging, how could I do that? any Idea? ...

Silverlight ValidationSummary screen real estate

Silverlight 3; I have a ValidationSummary in the top row of my grid. When the ValidationSummary appears, it pushes my button row (row 3) off the bottom of the displayable screen. <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> ...

Silverlight VirtualizingPanel recycling containers display wrong content

I recently wrote an implementation of a VirtualizingWrapPanel that recycles containers as they scroll into and out of view. On occasion I've noticed that the content rendered by the control is actually the previously contained data, not the current data. Performing any action on the control that forces a new render call updates the cont...

Can we bind our TextBox to an OnTextChangedEvent for MVVM?

We are using MVVM and want nothing in the View's C# file. We have a designer on staff, and don't want to teach them how to write C#. We have a Textbox that has text inside of it. It seems necessary to have the OnTextChangedEvent be inside of our VM. (We are binding the text to a string in the VM but it isn't doing everything that we ...

How to clear datepicker control in silverlight?

I am using the standard datepicker control from silverlight. If i happen to type junk text into it and try to clear the data by setting the Text property to empty, it wouldn't clear the data. There is a method called ClearValue but not sure what to give as input parameter. What could i be missing here? ...

How best to add classes to the structure of my silverlight project + website?

I am working on a silverlight 3 site using expression blend 3 (silverlight project + website option in expression blend). I need to add some business logic for the controls to consume (eg get ints for my gauges to pick up). If I add code to the class library, I cannot use all the namespaces and types - I assume because of the CoreCLR's ...

Trouble with Pan by dragging in Silverlight

Hello, I have a Canvas inside a ScrollViewer; the Canvas will have several objects drawn on it. I would like to be able to Pan -- scroll -- the Canvas using the mouse: LButtonDown - move mouse - LButtonUp. In the .xaml, I have a TranslateTransform for the Canvas. Code: private void MapCanvas_MouseLeftButtonDown(object sender, MouseBu...

How does the .Net RIA Services keep track of the logged in user?

I have been reading up on the .Net RIA Services that Microsoft is developing for use between Asp.Net and Silverlight applications, and it looks quite nice. I am curious about how it handles keeping track of authentication: How does the Silverlight client keep track of who is logged in, and when they have timed out? And it shouldn't ke...

Error when binding a Dependency Property on a custom Behavior

I am exploring the Silverlight attached behaviors mechanism in order to use the Model-View-ViewModel pattern within my Silverlight applications. To start with, I am trying to get a simple Hello World working, but I am completely stuck in an error for which I'm not able to find a solution. What I have right now is a page that just contai...

Showing lines with different colors on a Silverlight Toolkit’s LineChart?

Hy, I have a chart,wich is created in runtime,this could be Line, Bar or Pie type. Basically what i want is to have more contrast on the lines on the chart,this means i should use different colors on the lines. For Bar chart i use the StylePalette property to set wich colors will used in the chart,and it's working fine,but for Line it...

ASP.NET MVC & Silverlight - fire an event in both with one button?

Hey everyone, I currently have a little form with a silverlight bit for a person to sign their name and I was wondering if there was a way to have the submit button post to the controller and a silverlight code behind action... I tried adding a dom event to fire silverlight code but I guess that doesn't fire both events... Any ideas? ...

How to add SOAP headers in Silverlight?

Hello all... I'm trying to secure a data service used by my Silverlight, and am looking at using a custom SOAP header obfuscated into the SL and HTTPSed. I've found any number of examples showing how to do this using IClientMessageInspector, IEndpointBehavior, and a few other things. Okay... it all looks straightforward enough. My pr...

ASP.NET reference a LINQ to SQL class in Silverlight from its origin in the models of MVC?

I am working on an mvc app that uses some silverlight to supplement a page and instead of having to maintain two separate linq to sql classes I want to add a reference to the main project from the silverlight project but this can't be done through the normal method of just adding a reference, anyone have a workaround? ...

asp.net MVC and Silverlight data communication through a web service

Hey everyone, I am having a bit of trouble getting started with connecting my MVC app with some sprinkled in silverlight to a web service to interface the two with a database... Currently I have my linq to sql class living in my models in my MVC but I want to be able to hit it in the service from both my silverlight application and my...

IClientMessageInspector in Silverlight 3.0 ?

Hello all, I'm trying to secure a data service using SOAP headers in Silverlight. I thought i had found the answer in IClientMessageInspector. Unfortunately by default it seems this isn't supported, as creating a SL project adds a reference to System.ServiceModel v.2, and this interface wasn't added until v.3. Looking around online, ev...

Silverlight 3 Validation - manual validate not working?

Apologies for cross posting (I asked this on the Silverlight Forum but got no response) I have an entity that I am trying to use validation on so I have decorated a property like so: [Required] [StringLength(10)] public string Code { get { return this.code; } set { if (this.code != value) { this.code = value; this.SendPropertyChanged(...

Silverlight Store Data Locally

I'm using silverlight 3. I'd like to know if silverlight is capable of storing libraries, graphics and other objects on the local machine? For example. I have a LUA script, some textures, new libraries that the application will call to and also parses the LUA script. Is it possible for me to just re-compile the main silverlight Applicat...

Silverlight 3 + WCF and IIS basic authentication

Hi all, I have the following problem. On my machine I have a SL 3 application, which basically consists of: * Client app (SL) * Web app (.Net 3.5) * Communication with the database handled by WCF The site is hosted on my IIS, with the following authentication set up: * Anonymous access: off * Basic authentication: on * Integrated Wi...