silverlight

Silverlight with C++.Net

Hi, Can you use C++.Net for writting a Silverlight application? Not use C# or VB.Net as the backend language but C++.Net ...

Array binding Xaml by Position (Silverlight) - on Datagrid

Hi, I have a list of string array as input. The array dimension are static for all the list but I can't know the array size until the list is retrieved. I need to bind the list in a datagrid in Silverlight. I tryied to create columns at runtime, binding each column to a particular array position but cannot find a way. Have you any ...

Silverlight DataGrid Dynamic checkbox column needs click event

I have a datagrid that's bound to an observablecollection object. The collection may be a collection of Foo or a collection of Bar objects. Foo and Bar have different number of properties and therefore should have a different number of columns in the Data Grid. Because of this I am dynamically creating the columns in my data grid: ...

Silveright UIElementCollection change notifications?

I am deriving a class from the Silverlight Panel class so that I can perform some custom positioning of the child elements of the panel. How do you find out when the collection of child items has been changed? The Panel.Children collection does not have any events indicating change notifications. Do I have to scan the Children collectio...

Modifying look/behavior of the new Popup control (ChildWindow) in Silverlight 3

I would like to remove grey header of the new Popup control in Silverlight 3. Any ideas if this is possible? ...

Prism 2 for Silverlight with Unity - 'System.Threading.SynchronizationLockException'

I am using Unity with Silverlight and Prism 2. On my laptop (running Vista 32) I am seeing the following error in the output window in VS.NET 2008 SP1 - which I think is being caught internally by Unity. A first chance exception of type 'System.Threading.SynchronizationLockException' occurred in Microsoft.Practices.Unity On my desktop ...

Is it possible to obtain a reference to a silverlight's page from a WebPart?

Hi. I'm wondering how to communicate with this Page class defined in Page.xaml.cs: public partial class Page : UserControl { public Page() { InitializeComponent(); } private void TextBlock_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { if (HelloWorldTextBlock.Text == "Hello World") ...

Is it possible to bind an Event in a Silverlight DataTemplate?

Is it possible to bind an Event in a Silverlight DataTemplate? If so, what is the best way to do it? For example, say you've created a DataTemplate that has a Button in it, like this: <UserControl.Resources> <DataTemplate x:Key="MyDataTemplate" > <Grid> <Button Content="{Binding ButtonText}" Margin="4" /> </Grid> ...

Displaying a dynamic data structure in Silverlight DataGrid

I have a data structure like this: MyDataStructure{ string Name{get;set} string Title{get;set;} IDictionary<string, bool> Values{get;set;} } I want to display items from an array of this structure in a data grid type of display Name | Title | {Values[0].Name} | {Values[1].Name} | ... | {Values[N].Name} Any suggestions? ...

How to implement asynchronous updates for Silverlight app from a SharePoint WebPart?

I'm trying to figure out the best way (read: the easiest) to send updates to a silverlight app from a webpart (that contains the app) asynchronously. The exact time the update would have to be sent is determined by the webpart and it is sent ASAP. Two solutions I've googled (but not fully understood) are: WCF duplex communication/sockets...

Can you produce highly accessible content in Silverlight?

Are any versions (current or future) of Silverlight providing accessibility models to satisfy Section 508 and other Web Accessibility Standards? Flash has some support for making controls more accessible, but even that has only come to fruition in the most recent versions. http://www.webaim.org/techniques/flash/ ...

ASP.net C# Silverlight server component and ajax modal inside firefox

I have a modal popup inside of an update panel with a silverlight control. The video displays fine in IE 7/8 but in firefox all I get is a white screen I am using the following video skin from link text <div style="height:360px;"> <asp:Silverlight ID="myVideoPlayer" ...

Silverlight Panel OnChildAdded event?

Hi all, I'm trying to derive from the Silverlight Panel control to add some custom logic whenever a control is added to the Panel. I can't seem to find an "OnChildAdded" event (Or something similar) on the Children collection. Does anyone have any suggestions for how I can tell when a child control is added to a Panel or do I have to ...

Silverlight and a form application

Hi! I wondering if a can make a form with silverlight like an HTML form and submit its data to a server to store them on a database. Can I do that? Thanks! ...

Chaining VisualStates In Silverlight

I have three VisualStates that each have animation in them and I would like to chain them together. I want one state to begin after the last one has completed. How do I do this in Silverlight without a lot of smelly code? ...

Using MergedDictionaries in generic.xaml in Silverlight 3

In WPF it was possible to organise the XAML for multiple user controls by keeping the markup in separate XAML files in the themes folder and then using MergedDictionaries to import them into generic.xaml: <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="MyFirstControl.xaml" /> ...

How to do silverlight 3 blur effect in code behind?

The blur effect in silverlight 3 is nice: <StackPanel HorizontalAlignment="Left"> <Button x:Name="Button1" Content="Click This" Click="Button1_Click"> <Button.Effect> <BlurEffect Radius="2"/> </Button.Effect> </Button> </StackPanel> But how would I do it in code behind: private void Button1...

Where does the silverlight 3 toolkit MSI put the DLL files?

Just downloaded the Silverlight 3 Toolkit and executed the MSI file. Now I need to reference the Microsoft.Windows.Controls.dll file but don't know where MSI unpacked it. Can't find it at C:\ or in C:\Program Files. Where might it be? ok, this post says that all the components should be in the toolbox, e.g. DockPanel, they are for Vis...

How do I extend the timeout for a Web Service in Silverlight 2.0?

I am reading from a .NET 2.0 web service using Silverlight 2.0. The web service requests time out after 30 seconds, which is OK for most queries but occasionally I get a timeout. How do I extend the timeout to one minute? I tried this but it makes no difference. SilverSearchSoapClient client = new SilverSearchSoapClient(); clie...

Silverlight Banking/Insurance App Showcase

My boss asked me for some examples on larger Silverlight 2.0 applications in the banking/insurance sector. Looking at http://silverlight.net/showcase/ I only found a few simple apps (calculator style). Do you have any links, possibly developed by yourself? ...