silverlight

LINQ to DataSet Dataclass assignment question

Hi all, I'm working on a Silverlight project trying to access a database using LINQ To DataSet and then sending data over to Silverlight via .ASMX web service. I've defined my DataSet using the Server Explorer tool (dragging and dropping all the different tables that I'm interested in). The DataSet is able to access the server and dat...

Textbox validation border

I currently have the following red border, signifying invalid entry, around textboxes in an application. It just doesn't look right to me, it has square borders around rounded corners and the drop shadow is the wrong colour. What is the best way of achieving a decent looking border around the text boxes? ...

Silverlight 3: How to support templating/styling of dynamically added controls?

I'm creating a reusable control that dynamically adds another templated control to its visual tree: DashboardContainer (top-level "container" control) - DashboardItem (control that is dynamically added to a StackPanel in container) DashboardContainer is already a templated control so its easy to copy/customize its template in Blend....

JPEG 200 (aka J2K) handling in Silverlight app - any suggestions?

I need to handle JPEG 2000 (aka J2K) images in my silverlight app. Files stored either in the DB or file system on the server. Any suggestions how to handle them on the client? The only working converter I came across was written in Java. There are some ports to J#, but most likely they are not going to work on the client. The requiremen...

Keeping the DI-container usage in the composition root in Silverlight and MVVM

It's not quite clear to me how I can design so I keep the reference to the DI-container in the composition root for a Silverlight + MVVM application. I have the following simple usage scenario: there's a main view (perhaps a list of items) and an action to open an edit view for one single item. So the main view has to create and show th...

MediaElement: Element Binding to DownloadProgress

Hello guys & gals, I am trying the very simple scenario of binding the DownloadProgress dependency property of MediaElement to the Text of a TextBlock. <StackPanel> <MediaElement x:Name="mediaElement1" Width="500" Height="500" Source="http://ecn.channel9.msdn.com/o9/pdc09/wmv/CL20.wmv" AutoPlay="True" /> <TextBlock Text="{Bindi...

Does the application_startup() get called for each silverlight application?

I am using the templates for prism by David Hill and each application module contains a App.xaml file. I was sure that each module as it was loaded would create the App object (startup object in properties) and then call the application_startup() event. However, this does not seem to be happening? Is this correct behaviour? If so, how w...

How can i take control of an element inside a template from outer template

Hi folks, Am facing hard time finding solution for this problem. I've a control template in which i've a content presenter and a Custom visual state manager with visual state Selected and UnSelected under SelectionStates group. Inside the content presenter's content template i've an ellipse whose Fill property i want to animate accordin...

Silverlight get selected row data in DataGrid

Hi, In my Silverlight application I have defined a datagrid with an template column containing a radio button as follows: XAML: <data:DataGrid x:Name="Grid1" Margin="8"> <data:DataGrid.Columns> <data:DataGridTemplateColumn Header="RadioButtons"> <data:DataGridTemplateColumn.CellTemplate> <DataTe...

Does anyone know of a way to easily convert a PDF to a docx format programmatically

We have a couple 3rd party systems that give us PDFs. We would like to convert those PDFs for display on the web without using an Adobe product. Ideally we would like to use Silverlight to render the PDFs but are having trouble converting from a PDF to Xaml or using docx format as a middle man. There are lots of libraries that give PD...

How to make Silverlight DataGrid wide enough to show entire RowDetailsTemplate

I am creating the DataGrid and RowDetailsTemplate in code, so I don't have XAML to share. Sorry about that. As you can see the RowDetailsTemplate is truncated. Any idea how to make the grid wide enough to show the whole thing? Thanks in advance for any assistance. ...

Silverlight async api's cause hangs and none-responsiveness

this code causes silverlight to hang. If I remove the ManualResetEvent code, nothing happens private ManualResetEvent mre = new ManualResetEvent(false); ... WebClient sender = new WebClient(); sender. += new OpenReadCompletedEventHandler(this.ReadComplete); sender.OpenReadAsync(new ...

ActiveX cab alternative

I need an alternative to ActiveX Controls to run code on the client-side. I need a solution to download a file and execute it's binary code. But the only solution I found was an ActiveX Cab Control. Basically what this control is going to do is communicate with mainframes through sockets. Maybe I can do this with Silverlight, but I don'...

bubble unhandled exception to white automation from silverlight

Hi, I am using the white automation API to test a silverlight app, but when an unhandled exception occurs in silverlight I don't know of a way to report this back to the unit test or check in the white api to see if there was an exception. Anyone got a way to do this? ...

Hosting WCF web services on IIS - works in VS, but not in IIS

I'm very new in web programming stuff, so my question is about basics. I'm developing a SilverLight application and need to access the database from it. I'm using LINQ to SQL to get data from database and a WFC web service to deliver it to my app. Everything is working fine when I'm running my app within Visual Studio. When trying to p...

Why do I get an AG_E_NETWORK_ERROR in Silverlight on my local machine

I am hosting my Silverlight app in SharePoint 2010, which is running on my machine. Suddenly my images stopped showing up, and after a lot of fiddling, I tracked the issue down to an AG_E_NETWORK_ERROR. Searching all over the internet says I can't do cross-whatever in Silverlight, but that is not my issue. My site is on http://my-site...

Is it possible to change the animation speeds in Silverlight themes?

Is it possible to change the animation speeds that are used in the Silverlight toolkit themes? Specifically, I like the look of the Expression Dark theme, however I feel that some of the animations it uses take too long and make it feel sluggish. I'd like to be able to modify the animation speeds thru a setting, and be able to do so ...

Silverlight import references

If I have a silverlight project and silverlight class library. In the class library I imported the silverlighttoolkit.dll. The silerlight project imports this class library and also the silverlighttoolkit.dll. Will that make my xap file larger? How do I handle something like this? Should I use the toolkit dll through the class library? ...

Silverlight image Uploader -- help!!

The following is the main body of code for an image resizer/compressor/uploader. This is my first silverlight project, and I am having trouble with the threading and gui updating as well as the webclient part, which does not function.The resizing and resampling seem to perform to my knowledge. The problem is the gui updating and uploadin...

Is Silverlight RIA worth learning or should I stick to normal Silverlight?

Is Silverlight RIA worth learning or should I stick to normal Silverlight? Background: I have done a couple small applications in WPF I have 12 years expereince with business apps in the VB6/WinForms model I expect to continue building business applications My applications will be used internally While ClickOnce does work for us, we w...