silverlight

Silverlight Asynchronous Crud Insert: One-to-One relationship ?!?!

I've been following this tutorial on how to implement a Silverlight application. The tutorial uses the Northwind database for its examples. I have been using the code samples to implement the same functionality as the tutorial shows into my own application with my own database. The last part of the tutorial shows how to add new items and...

Simple silverlight open-file-dialog errors

A while back I wrote a silverlight user control which had a csv import/export feature. This has been working fine, until recently I discovered it erroring in one scenario. This may have been due to moving to Silverlight 3. The Error: Message: Unhandled Error in Silverlight 2 Application Code: 4004 Category: ManagedRuntimeError Message:...

Why does Entity Framework not return a trimmed string for a nvarchar(MAX) field?

I'm currently working on a Silverlight application connected to a SQL Server 2008 Express database that is largely based on a demo on Brad Abrams' blog. (NOTE: The demo file at the specified link is actually a different solution that the one he shows on the live running application. The demo in the blog post uses Entity Framework, whil...

Silverlight component vendors

I’m looking for Silverlight component libraries (preferably commercial). So far I’ve found these: ComponentOne Telerik DevExpress Vectorlight Infragistics Xceed Am I missing any? I previously posted this question, I’m (still) searching for a Silverlight Image Editor. As part of my exploration I have to document that I at least che...

Silverlight cross-domain: SecurityException in release mode only

I understand that for Silverlight to be able to make a cross-domain request using the WebClient class, there needs to be a clientaccesspolicy.xml at the root of the server. I got this working, and when the Silverlight app has been compiled in debug mode, this works great. When the Silverlight app is compiled in release mode, however, I g...

Silverlight - polygon scaling and clipping

I have a Canvas, to which I've added several thousand polygons. I would like to be able to zoom in (which I'm doing via a ScaleTransform. However I've been trying to use a Canvas.Clip as well to only draw a portion of the Canvas, but as soon as the ScaleTransform values are changed, the clipping stops working... <Canvas Grid.Row="...

Playing multiple audio streams (mux) in silverlight

Is it possible to play a multiple audio streams (mux) in silverlight (at best simultaneous)? I need to implement a player that can load and play multiple tracks from the server together. The user can mute then any tracks to hear them selectively. Do you know some existing commercial or free solutions? ...

Silverlight Validation - How to stop user submitting invalid data.

Hi, I have a ChildWindow whre user enters some data in a text field. Now when he clicks submit button I need to close the ChildWindow only if the data entered is valid? How to check that? I have searched and seen many examples for how to validate the textbox but I need to know how to see if everything is valid and let user close the win...

If you are multi-targeting an assembly how should you name the files?

If you are multi-targeting an assembly how should you name the files? For example if you are targeting both standard .net and silverlight should the files be named differently? Something like MyProject.dll and MyProject.Silverlight.dll Or should they be named the same but exist in different directories Something like DotNet\MyProject...

How to save BitmapImage / WriteableBitmap using SaveFileDialog in Silverlight 3.0?

How can a WriteableBitmap from Silverlight be Saved onto the File System, I am unsure what to do with the FileStream to make this work, it can be in Bitmap, PNG, Jpeg format etc, as long as a commercial library is not required. Is it possible to do this? Here is my call to SaveDialog, below: Dim SaveDialog As New SaveFileDialog ...

Silverlight User Experience URL Image Displays?

I have a database that contains a table for storing URL Images (since storing the images as byte arrays could potentially slow the DB down massively). There are two fields in the image table, one that stores a URL to a low resolution image and one that stores a URL to a high Resolution image. So far this is just a concept and has not bee...

How to select an item in the Silverlight Treeview?

I am having problems to select the first TreeViewItem in a TreeView in Silverlight. The following code just gives a null value in the method SelectFistItemInCatTreeView. Why? Any ideas? <controls:TreeView x:Name="treeCategories" Grid.Column="1" Grid.Row="2" SelectedItemChanged="treeCategories_SelectedItemChanged"> <controls:TreeView....

Silverlight 3 onload event binding multiple instances

I have two silverlight instances embedded in a page like follows (content simplfied to relevant details only):- <object id="SL1" data="data:application/x-silverlight-2," type="application/x-silverlight-2"> <param name="source" value="/clientBin/Common.xap"></param> <param name="minRuntimeVersion" value="3.0.40624.0"></param> <p...

Relative Web service references in .net and silverlight

Is it possible to make these relative? for example: webservice.asmx rather then http://servername/webservice.asmx ...

Total Silverlight/ASP.Net MVC noob question!

Hello! So i've recently got into Silverlight development. So far i've managed to create a single Siverlight XAML view which pulls in data from an SQL Server Database using the ADO.Net Entity Framework and displays the data in a Silverlight DataGrid. I can also perform simple editing and update functionality on the data and persist it bac...

Silverlight: How to dynamically bind a ComboBox in a ListBox ItemTemplate?

I have a list box that requires at least one ComboBox. I couldn't find a way to place the ComboBox in the ItemTemplate I use. ... <DataTemplate x:Key="parts_template"> <StackPanel Orientation="Horizontal"> <TextBlock .../> <ComboBox .../> </StackPanel> </DataTemplate> ... <ListBox x:Name="lb_parts" ItemTemplate="{StaticRes...

Modify Application.Master in Sharepoint 2007

...

How To Style Title Property Of Silverlight Childwindow

How can I set the ChildWindow Title content from a style? Setting the content to text is straightforward: Setter Property="Title" Value="My Title Text" How can I put a StackPanel or Image in the Title from the Setter? I know I could extract the entire style for the control and modify the Chrome but I would like to avoid having all th...

Progressive enhancement with Silverlight.

Can I detect with Javascript if the client has the needed runtime to run a Silverlight section in a page, and load if if they do, otherwise leave a static image or something in that area? I would like to add some Silverlight to a page, but it's not an important part of the page so I would rather just silently fall back to pure web stand...

Find Silverlight TreeViewItem control by Header

I am trying to create a TreeView from the Silverlight TreeView control. I have my data being pulled from a WCF service that pulls from EF. All of the data is coming in fine. I have the page set up where I can input a UserName, click a button, and the data will populate the first generation in the TreeView. So, I'm dynamically buildin...