silverlight

Pixel level 2D Graphics in Silverlight

I am trying to port a WebForms app to Silverlight, this application is using the GDI Graphics class to draw polygons to a in-memory bitmap, it will then do pixel by pixel comparisons so I need access to the pixel buffer. Example: Graphics g = Graphics.FromImage(bmp); g.FillClosedCurve(brush, points, FillMode.Winding); I have...

How to remove the mouseover highlight and selected row highlight in a Silverlight datagrid

I've got a datagrid with one button in each row (xaml shown below). I'm trying to get rid of the blue highlighting functionality where it highlights the selected row, and the row with the mouse over it. I'm trying to seit it up so you just click on the button without getting the row selection and mouseover highlight functionality. I tr...

Silverlight button style how to prevent the focused state when the button is pressed?

In my custom button I need to show that it had focus(provides some tactile feel to tabbing to the button) and show that its pressed but what I have found is my focused state is displaying rather then my pressed state. How can I correct this. I would like to have mouse over to pressed not mouse over then focused(when the button is cli...

Update Silverlight Datagrid After Response from Server

Hi, I got a datagrid in Silverlight. I would like the datagrid (or usercontrol that contains the datagrid) to post to the server when the user edit a cell in the gird. to signal to the datagrid using some symbol in the cell edited (like a loading-symbol) that a post is sent to the server and the control is waiting on a response. to si...

Java in Silverlight?

Can we use Java in Silverlight? ...

Load User Control dynamically and Default Namespace

In Silverlight, when you want to create a control dynamically, you must add the namespaces like this (as in http://msdn.microsoft.com/en-us/library/cc189044(VS.95).aspx): XNamespace xmlns = "http://schemas.microsoft.com/client/2007"; XElement textBlock2 = new XElement(xmlns + "TextBlock", new XAttribute(XNamespace.Xmlns + "x...

Can a storyboard access the UserControl that it resides in?

I have a usercontrol, and I want a storyboard inside the user control to fade the user control out. Using Expression Blend, I can create the storyboard and cause it to fade the user control out, but when I run the silverlight application I get an error on FindControl stating that it can't find the control. I'm guessing the find control...

Moving .xaml and .xaml.vb files to a new Silverlight project breaks xaml compilation

When I move .xaml and .xaml.vb files to a new Silverlight project, the generated .g files no longer include members for the x:Name attributes defined in the xaml file. This means the code-behind files can't refer to those members and cannot build. ...

What potential do you see in Silverlight?

Silverlight has been available since quite some time, and Silverlight 2 allows .Net programming on the front-end. I've been thinking about the apps that I can make using Silverlight, but I can't decide if I should go for development in Silverlight because i am still concerned about accessibility and acceptance. What potential do you see...

Convert a Silverlight text to a path

Is there any way to render a Silverlight text to a path or graphics object at runtime? I know this can be done using the design tools, but I want to be able to do this on the fly. I've seen an example that calls a webservice which uses WPF constructs to convert a WPF FormattedText object to a PathGeometry, but those objects aren't avail...

How to make the "rolling" effect in Silverlight?

I find that Resolution Randomizer (http://resolutionrandomizer.pop.us/ecard.aspx) is quite interesting. It has a rolling effect when you click the "Randomize" button. I'm really new to Silverlight and I wonder how it is implemented. I'd like to add some similar effect to my project. Anyone has some scripts I can refer to? ...

What's the best solution to create a 'streaming video website"?

We are considering developing a streaming video website, like Youtube. What are the technologies available, and how to leverage them? I know that clients like Adobe Flash Player, Silverlight etc can be used to play the streamed movie, but my concern is more or less regarding the server architecture, encoding etc. Please help. Right now...

silverlight mediaelement RTSP

As far as I can see silverlight only supports streaming over http even in version 2, as I understand it mms is converted to http and therefore you cannot stream RSTP (I have tried to test this and get network errors unless I stream http). Does anyone know if RSTP is going to be supported in Silverlight or if it is and how? Thanks P ...

Duplication of properties in Data contract and BAL

I have a Silverlight Project which passes data using the Data Contract to a WCF service. The WCF method then invokes a BAL class which again has the same properties. Is there any way to avoid this duplication of properties ? Thanks, Chak. ...

Does Silverlight support StringFormat in binding?

I know that WPF 3.5 SP1 supports a StringFormat in a binding, but can Silverlight do the same? I thought it could, but damned if I can make it work! Here's a snippet of my XAML: <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding StartTime, StringFormat=t}" /> It compiles OK, but I get a runtime error when it gets to the browser.....

How do you export from Expression Design to Silverlight XAML and retain vector relativity?

I am trying to export some prepared assets out of Expression Design 2 and into .XAML, with a final destination of Blend 2 for layout, but I cannot find a reliable way to keep the ability to resize those assets when they reach Blend. Taking a look at the exported final product, the XAML produced is wrapped in a Canvas (whether or not I se...

Confused about C#/Silverlight workflow

Hi, I'm working on some charting controls for my ASP.NET web app. I am aware of visifire and the Silverlight charts MS now provides. My requirement came before I knew about these and their releases and I'm intending to write charts that are as good as Dundas or ChartFX (or is it SoftwareFX?). Anyway, as the logic is the most logic-int...

How do you attach to events on a ScriptObject in Silverlight?

The HtmlObject provides all the necessary functionality to register managed event handlers for script and DOM events, but what if the class you need to listen to doesn't exist as a DOM element, but a scripting variable (referenced via ScriptObject) instead? ...

What's all this business about Flash, Flex, Adobe Air, Java FX and Silverlight?

What's all this business about Flash, Flex, Adobe Air, Java FX and Silverlight? Why would I choose one over the other? and what happened to Java Applets and ActiveX controls? Oh, and where does AJAX fit in to all this? and is Laszlo relevant? Afteredit (in response to some "d'uh" type answers): the question is a bit tongue-in-cheek. I ...

UserControl that has a generic class in its inheritance tree

I'm trying to create a UserControl that inherits from a generic class. It does not directly inherit from a generic class, but through an intermediate class that does not use generics. This compiles and works at runtime, but I get an error at design time. Here's my generic parent class: Public Class GenericParent(Of T) Inherits Us...