silverlight

Can we still develop Silverlight 2 applications

Hi there, I've inherited a set of Silverlight 2 applications (new job), one of which needs upgrading. We can do the updates in code without problems, but the available dev machines all appear to be running Silverlight 3. I can't seem to find Silverlight 2 tools for download any more - is there a way to multi-target Silverlight the same...

Use the style defined in resource dictionary :

I have a style defined for listboxitem in a resource dictionary. I want to use this style in a cs file of listbox : I am doing the below thing but it gives me null ,CustomListBoxItemStyle is a name of a key given to the style. public class CustomListBox : ListBox { public CustomListBox() { this.ItemContainerStyle = ...

Silverlight memory allocation

Can some one please confirm how much memory at max is allocated to silverlight client application. For example if we want load entity of size 200 mb in silverlight client memory is it possible. Thanks ...

If the subset of the .NET framework is included in the Silverlight Plugin why does it not automtically work on Linux

If the subset of the .NET framework is included in the Silverlight Plugin why does it not automtically work on Linux? ...

Null reference exception While Navigating to PlayListItem.

Hi, I am trying to play the selected media from PlayList,if the selected index is not zero as below: if (playList.Items.Count == 0) { setPlayList(); if (selectedIndex!= 0) { if(custMediaElement.Playlist!=null) custMediaElement.GoToPlaylistItem(selectedIndex); ...

custom grid style in silverlight 4

Hello, I want to set background of a grid using a style. I style I'm setting the Background Property of the grid. But I have a border filled with LinearGradientFill and a Path which also has LinearGradientFill in it. But I'm not able to combine both. Below is sample code. I want to create it as a style. <Grid> <Border BorderBrush="B...

Silverlight RIA Services - Showing columns from multiple tables

Hello, I have been evaluating Silverlight and .NET RIA Services for my company. I am trying to decide if it is right for us. For the most part, I like it. But, I see one item that I am surprised that I cannot do easily. Because of this, I'm guessing I'm doing some thing wrong. To demonstrate, I have two database tables: Order ----- ID ...

SilverLight 3 Beginner question: Scroll with mousewheel and zoom image with panning

Hello, I would like to make a small silverlight app which displays one fairly large image which can be zoomed in by scrolling the mouse and then panned with the mouse. it's similar to the function in google maps and i do not want to use deepzoom. here is what i have at the moment. please keep in mind that this is my first silverlight ap...

Silverlight standard loading animation does not get displayed.

Can anybody enlighten me as to how the standard Silverlight loading animations (the swirling blue balls) are embedded in a Silverlight application and how they work? I currently don't see it although loading the xap takes long enough for the loading animation to be displayed. The problem is that I'm creating a xap dynamically and trying...

WP7-Silverlight Asynchronous Unit Test, EnqueueCallBack is not supported by the language?

I am working on a unit test for a Windows Phone 7 Silverlight app. The code for the test looks like this: [TestMethod] [Asynchronous] public void StuffIsLoading() { WaitFor(_repository, "LoadingStuffComplete"); var viewModel = new MainPageViewModel(_repository); EnqueueCallback(() => Assert.IsTrue(viewModel.Stuf...

How would you go about making a List<> comparable?

I am using a Telerik GridView, and having an issue trying to sort a column that is made of of a List<>. In this forum entry, the Telerik team states that the grid can sort IComparable and group/filter IEquatable<> no matter of the Silverlight version. In the xaml below, you will see the four columns that I have in my grid. The SVOs co...

Will Prism OnDemand module loading work in an OOB scenerio?

Should the loading of OnDemand Prism modules work in an OOB scenerio? If so, I cannot seem to make it work. Everything is currently working in browser without any problems. Specifically I: register my modules in code: protected override IModuleCatalog GetModuleCatalog() { var catalog = new ModuleCatalog(); Uri source...

Silverlight, reducing xap size setting, why dlls still included?

Hi I've used the "Reduce XAP size by using Application library caching" setting. I see that some dlls are now excluded from the .xap file but some aren't, specifically System.Reactive.dll System.Windows.Controls.DataVisualization.Toolkit.dll System.Windows.Controls.Theming.Toolkit.dll System.Windows.Controls.Toolkit.dll Any idea wh...

Horizontal Orientation of DataGrid in Silverlight 4

Hello, I want to change the orientation of the datagrid to horizontal in silverlight 4. i.e. I want to display the headers on the left hand side and the values corresponding to it on right hand side. how can I do it? Thanks. ...

Silverlight large TreeView + Busy Indicator

Hello, I'm working on a Silverlight interface that among other things needs to display a bunch of URLs and the HTML elements they contain in a TreeView control. The user may view the tree in two modes: read only (contains only the URLs and HTML elements selected by the user) and edit (contains everything). In order to do this I use two ...

Silverlight 4 Toolkit Chart question

Silverlight Chart Legend Style With Silver Light 4 Tool Kit April 2010 Going off various examples I have found on the web, I am trying to set the legend style so the items are side by side. Error returned “cannot find Style Property ‘ItemsPanel’ on the type ‘System.Windows.Controls.DataVisulization.Legend’ <chartingToolkit:Chart.Legen...

Silverlight 4 + MVVM + KeyDown event

I'm trying to build a sample game in Silverlight 4 using the MVVM design pattern to broaden my knowledge. I'm using Laurent Bugnion's MvvmLight toolkit as well (found here: http://mvvmlight.codeplex.com/ ). All I want to do right now is move a shape around within a Canvas by pressing specific keys. My solution contains a Player.xaml (...

Uploading files in .net with WebClient (and silverlight)

I have the code below which I am using to upload files to my ashx page. It works great, although I cant seem to find a proper way of getting how much it has transferred. The calling code: WebClient wc = new WebClient(); wc.OpenWriteCompleted += (s2, e2) => { PushData(e2.Result, offset); e2.Result.Close(); }; wc.OpenWriteAsync(ub....

wait for file creation

Hello, i have a silverlight app which calls a webservice. that webservice encodes a wav file to mp3 format. how should be the best way to wait for full mp3 file creation? regards ...

How can I move an object left and right with silverlight?

I currently have two buttons that say left and right, and I want them to move a square object left and right respectively. What its currently doing when i press left is moving the square to the left, and if I press left again, it resets from the center and goes left. I want it so that when I press left, from where ever it is currently ...