silverlight

How to set dropdownlist in .aspx page from managed code via DOM

I've a control that sits in the .aspx page, but the dynamic code is in separate project in Page.xaml.cs. On the same page as the control, I have: <asp:DropDownList ID="DropDownAppServer" runat="server" > In the Page.xaml.cs I've tried doing this: HtmlElement element = doc.GetElementById( "DropDownAppServer" ); element.SetAttribute(...

How do I use a Silverlight2 ItemsControl to position a collection of items on a canvas?

In WPF, you can create a ListBox with a Canvas as an ItemsPanel and position items on that canvas. The code to do that looks something like this: <ListBox ItemsSource="{Binding}"> <ListBox.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Path=Name}"/> </DataTemplate> </ListBox.ItemTemplate> ...

Can you do HtmlDecode & HtmlEncode in Silverlight?

So since System.Web & HttpContext isn't available in Silverlight is there a way to do HtmlDecode & HtmlEncode inside a Silverlight app without some horrendous Regex? ...

What is the best approach to creating a "list of contacts" in Silverlight?

I am trying to create a Silverlight application which pulls in my Flickr contacts and photos. I want them to display "nicely". I intend on creating a control that shows the user and their images right next to their name. I want each user to be listed one after another. Something like this: ---------------------------- User Name: <Ph...

Inserting image over 3mb via linq-to-sql

New day, new problem :-) Code: Client Side: void abw_Closed(object sender, EventArgs e) { DbServiceClient sc = new DbServiceClient(); abw = (AddBlobWindow)sender; fi = ((AddBlobWindow)sender).fi; if ((bool)((AddBlobWindow)sender).DialogResult) { blob = new Blob(); binBlob = new Binary(); bina...

Integrate Silverlight Unit Testing with Visual Studio 2008 Test Results Panel?

I would like to run my Silverlight Unit Tests from Visual Studio instead of opening a new instance of my Silverlight Test App in the browser. Apparently it is possible (http://www.jeff.wilcox.name/2008/09/rc0-new-test-features/ - search for "Visual Studio Team Test log provider output")....but I don't understand how you enable this, doe...

Can not find System.Windows Assembly.

This is the error we get: Error 1 The type 'System.Windows.Point' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. C:\PacMan\PacMan\PacMan\PacManTests\UnitTest1.cs 65 13 PacManTests We get this error in our unit ...

Silverlight DataBinding Against CLR Objects in Blend

I love the feature in Blend where you can setup databinding to CLR Objects, and design your Silverlight control/page. My issue is around the creation of a user control that will be used as a DataTemplate. It all works great in Blend, but only at design time. The issue is that when I am editing the control in Blend, and I bind say a textb...

UpdatePanel and UpdateProgress not working.

If I use: OnSelectedIndexChanged like this: <asp:DropDownList ID="ddl1" AutoPostBack="true" OnSelectedIndexChanged="Test_SelectedIndexChanged" runat="server"></asp:DropDownList> UpdatePanel and UpdateProgress work correctly, meaning it shows my little gif etc. However as soon as I change this to call javascript code, like this: <as...

Dynamic updates of objects in a Silverlight application?

Maybe I am just over thinking this and need to write some more prototype code, but I wanted to get some of your thoughts: Basically the application is going to be displaying up to several hundred custom visual objects in an X/Y "grid". The position and attributes of some of these objects may change between updates; the application will ...

Drag and Drop control for Silverlight

Recently I needed to add drag & drop functionality to a Silverlight application. Can anyone recommend a good drag & drop control? ...

How to unit test Silverlight 3 Out-Of-Browser application?

How to unit test Silverlight 3 Out-Of-Browser application? ...

silverlight OpenFileDialog opens a second time

I'm using the openFileDialog in sliverlight 2.0 with vb.net in the back end. I have it wired up and it is working as it is suppose to except that the click event seems to fire twice. It fires the first time, i select the files and click ok. it does the processing. But as soon as i click ok, the click event fires a second time and the ...

How to databind Multiple Series to a Silverilght Toolkit Chart

Hi, I am trying to use databinding to bind data to a Silverlight toolkit chart. I will have one to many sets of series so cannot determine how many series i need before hand. I also want to stick to a databinding model and not resort to programmatically adding these series as many other controls bind to this datasource. I found an arti...

Click-to-edit in Silverlight

Is there a way to make a "click-to-edit" control in silverlight? I've got some items that will be displayed in a treeview control, and I would like the labels to be editable directly in the treeview. Anyone know how to do this? ...

How to use Same Library for Silverlight and CLR

Hi, I Have a library which has custom domain logic. Some of the stuff is heavy hitting and depend on the core runtime outside silverlight runtime. Is it possible to compile the same code for 2 different runtimes and reference different flavours from different consumers? How ...

How to add Silverlight app to my web page?

I have created a website. How do I add my Silverlight application to it? ...

Making a Shaping Drawing+Page Layout Application in Silverlight

Hi All What would be the feasibility of a creating a page layout/shape drawing, with zooming, saving to database application in silverlight? Does anyone know where I could find some good learning material on the classes/concepts I would need to know? I think this would be a fun project. Thanks in Advance. Michael ...

Is it possible to zoom dynamic content with silverlight?

I am new one with Silverlight and I am interested in how to zoom dynamic content. For instance i have canvas and several listboxes and i want to zoom it. ...

How to add debug assemblies to my Silverlight 2 application?

So I know now that the debug assemblies have been intentionally left out of the Silverlight runtime to save space. For that reason I get good detailed error messages on my local machine that has the Silverlight SDK on it, but I don't on a computer with the runtime only. I get the ubiquitous, "Debugging resource strings are unavailable....