silverlight

Silerverlight Deployment Options

How do I stream parts of a silverlight movie? I am not doing video or anything like that, it's just if I make a silverlight movie that's 5 MB in size I want to simply stream 1 MB at a time. ...

Dynamic DataTemplates (pref. Silverlight)

Is it possible to have a ListBox with a Data Template that changes depending on certain properties of the ItemsSource? For instance maybe you want a list with a variety of items such as images, video, custom panels, etc. Was hoping it could behave like some sort of factory. Any ideas how this would work? ...

C# Silverlight Datagrid - Row Color Change

Hey! How do you change the color of the silverlight datagrid rows?! I've tried this but it doesn't seem to work how I want it to...Random rows get colored incorrectly: void dataGrid1_LoadingRow(object sender, DataGridRowEventArgs e) { var c = e.Row.DataContext as Job; if (c != null && c.Status.Contains(...

Silverlight as Javascript replacement for complex Web UI in MVC project?

How practical would it be to use Silverlight inside of an MVC view to achieve a GUI that's rather complex with Javascript (and crippling to non-usable without Javascript)? I know nothing about Silverlight so if this seems like a good idea, how difficult would it be to do so, or vice-versa? Would asking users to install a plugin outwei...

DataGrid: How to test if a column exists in a datagrid

I have a datagrid that I want to pass in a generic collection. On mouseover I want to test if the row has a specific column and return the value. What I am trying to accomplish is to determine the type of objects in the grid based on the existence of a specific column. For example, if "SerialNo" exists I know the grid is currently holdi...

Is it possible to bind to a lambda expression in Silverlight?

I have a listbox that simply binds to a collection. The collection has a child collection (StepDatas). I would like to bind to a count of the child collection but with a WHERE statement. I can bind to ChildCollection.Count but get lost when needing to add the lambda expression. Here's the XAML: <ListBox Height="Auto" Style="{StaticR...

Begin Storyboard on more than one target

I have a subclassed ListBox with a "SelectedItemChanging" dependency property that is set to a Storyboard. When the selected item is changed, I want to run this Storyboard on each item in the ListBox. How is this possible with a single instance of Storyboard? ...

How to get the position of an element in a StackPanel?

Say I have a StackPanel that gets dynamically filled with copy, changing the Y position of elements inside it. I have a specific element within that StackPanel that I want to find the Y position of (relative to the StackPanel or otherwise) after the StackPanel is done repositioning all of it's children. StackPanel sp = new StackPanel();...

Silverlight 3 Architecture and implementing DataAnnotations - Adivce

I am uisng Silverlight 3 and ADO.NET Data Services with a cusotm-built Model (separate project) and DAL (separate project)) in place. Within my Silverlight project, I create a [Service Reference] that references my .svc file that in turn points to my Model. Here's my question: I would like to use the rich features of DataAnnotations ...

hosting silverlight media with azure

I'm considering hosting MP4s using Azure Blob storage. When azure returns a blob using a url does it include the accept-range header. Will silverlight be able to seek ahead using byte range requests on the Azure storage? ...

Silverlight 3: Converting XML stroke collection back into a strokecollection?

I have a silverlight app that allows the user to draw on it and save the drawing. The strokecollection in the canvas is converted to xml attributes and stored in the database. the only problem i have now is converting the xml back into a stroke collection. my strokes are stored as such: <Strokes> <Stroke> <Color A="255"...

missing System.Windows reference

I have a Silverlight application where I need to use the Vector class in System.Windows within the Web project. But VS is complaining that System.Windows does not exist. I tried adding the reference, but it's not in the list of namespaces to add. In the .NET tab, it goes from System.Web.Services to System.Windows.Forms and skips Syste...

MouseEnter event not fired during an animation

I have a red border moved by an animation (with a RenderTransform) and the blue border underneath is handling the MouseEnter event. Unfortunately, the MouseEnter is not fired when the mouse enters the blue border (because the red border has moved away) but when the mouse is moved. The sample below is tested in Silverlight but I believe...

Problems with silverlight and sharepoint restored site, help!

Hi there, well i had a site in sharepoint with silverlight web parts, they all woked fine until i restored that site in another server, and now silverlight web parts are blank but show the silverlight menu, i tested silverlight in the same server in another sharepoint site and it worked fine, also i checked the web.config all looks ok, w...

Facebook Open Stream Api in Silverlight

I want to prompt the user to use the Open Stream api. When I call showPermissionDialog, the code executes fine, but nothing pops up. I know you can't put HTML in a Silverlight app, but the popup should show up on top of the Silverlight app. Is this possible? If so, how? Thanks. ...

Enabling Disabled tools in the visual studio toolbar

Dear All, I am developing my minor and major project in VS2008. Suddenly tools have started to go missing from my toolbar. I have visited several forums but am not able to solve the problem. Basically I have silverlight 2.0 installed with SDK, and tools and all. Now when I need to access the media element control from silverlight it do...

How to bind GradientStop Colours or GradientStops Property in Silverlight?

I want to be able to have a dynamic Gradient in Silverlight, such as below: <RadialGradientBrush GradientOrigin="0.20,0.5" Center="0.25,0.50" RadiusX="0.75" RadiusY="0.5"> <GradientStop Color="{Binding Path=GradientStart}" Offset="0" /> <GradientStop Color="{Binding Path=GradientEnd}" Offset="1" /> </RadialGrad...

get code from silverlight publish?

Is there any way to get the code from a silverlight publish? My laptop has completely crashed, the only thing if have left from my application, is the published website. Is there a tool or something to get the code from my app? ...

Create silverlight 3 object in code behind

Hi, sorry if this is a very simple question but how do I add a silverlight 3 object, i.e. a XAP, from the code behind of an asp.net application ?? ...

C# Silverlight RIA Services Authentication - Step By Step How-To?!

The Scenario I have been following Brad Abrams Silverlight With Ria Tutorials In order to build a web-based application. I have implemented my own custom version of the application that is built throughout the tutorials and am hoping to add in some authentication to it. The Problem I have followed this tutorial also by Brad Abrams on ...