silverlight

Silverlight sockets or db requests?

I am currently coding an online turn based rpg for an assignment. In the game players can chat with each other and send their actions once they complete a turn. What is the best way to take care of the data exchange between the players. Sockets or storing all information in a database and the program periodically does requests to check f...

Silverlight DataGrid styling

I have a DataGrid whose ItemsSource is bound to a changing Observable Collection. Inside of this collection is a Business Object. Based on some of the values of the Business Object's properties, I would like to be able to modify the color of the text for each item displayed in my DataGrid once the ItemsSource is created. Has anyone do...

Silverlight helix code-behind page navigation

I am new to silverlight and from what I gathered there isnt any direct functionality as regards to paging so I downloaded the helix project from here . I found it rather usefull but failed to find a way(using helix) to navigate the pages through code-behind . The reason why I need this is that I want to navigate to another page if a meth...

XAML Based Level Editor

I would like to create a level editor for Silverlight with XAML. What resources would be useful for research before starting such a project? Here is some information to clarify. I made 1 silverlight game and released it so far. The I would like to have an overhead style action game. The map would be much larger than the current viewa...

How to force a Silverlight container to expand/contract to the size of its child controls?

I've got a root UserControl that is 300 high. Inside that I have a Border that I want to expand to the size of its own controls, so if I stack in more controls, it will expand -- less controls, it will contract. However when I set it to "Auto" it expands it out to the size of its parent container instead of the size of its child contro...

How can I execute silverlight unit tests from the command line

I've a set of tests for a silverlight application that use Silverlight's test framework. I can execute these from within visual studio and they run beautifully. I can also build my code from outside Visual studio using MSBuild following the tips in Jeff Wilcox's blog post: http://www.jeff.wilcox.name/2009/01/silverlight-msbuild-tricks-...

Is silverlight a good choice for web applications which display large amounts of data and focus on user productivity?

I've played some on-line demos of silverlight component packs, like Telerik, NetAdvantage and ComponentOne and although I was very impressed by what I saw, I had also the impression that the demo applications were heavy to load, even during the usage of some components. I'm planning to try silverlight in a project that demands loading l...

Are Silverlight DataGrid Checkbox events?

Hello, Is it possible to have a bound DataGridCheckBoxColumn call a method of click? Or event a row level or row enter event? I'm trying to implement a datagrid that updates the underlying filtered ObservableCollection collection (great sameple here http://petermcg.wordpress.com/2009/01/29/filtering-silverlight-datagrid-rows/) The fi...

Use of a microphone is Asp.Net application

Hi, Since SilverLight doesn't natively supports the use of microphone, is there a workaround I can use to get a live stream of what the user said in his microphone. I need to access to a audio stream (from the user client microphone) that a server class (c#) will use. I look to use Flash or Java applet, but it's all seems to be pretty...

Can you change the Silverlight download indicator graphic?

When a Silverlight application is downloading you get the percentage text and the blue dots moving around it as a progress indicator. Is it possible to modify this to have a custom progress indicator instead? It would be nice to have something matching the theme of the application that will run. ...

Can Silverlight downloads be zipped to speed up the download?

When Silverlight downloads the assemblies in your app can it be made to download them as zipped files and then uncompress them before running? This would speed up the download time for a large application. ...

Does Silverlight download the assemblies everytime?

Does a Silverlight application get downloaded everytime you visit the site or will it check version/size information and only download a newer version of files? ...

Silverlight AutoCompleteBox BorderBrush runtime color change?

Is it possible to update a templated AutoCompleteBox's BorderBrush at runtime? I can't seem to set the BorderBrush or the background. Even base statements like TxtFoodSearch.BorderBrush = new SolidColorBrush(Colors.Red) don't seem to made a difference after the page has loaded. My Xaml is below. <controls:AutoComplete...

Any suggestions for making Silverlight content available to search engines?

Assuming the following: You have some content currently being displayed in an ASP.NET HTML table. You want to use Silverlight for a better user experience. It is important that the information be indexed in Google, et al. What do you do? I know that XAP (Silverlight executables) contain XAML which could theoretically be indexed. But ...

Cloning controls and databinding

I use the Justin-Josef Angel "way" of cloning controls, but I've run into a problem with data binding: If for example I set the Text property to be bound to something like "{Binding Name}" and then clone the control, the new cloned control will have the text property set to for example Joe (the evaluated value) and not the binding expres...

Why is two-way binding in silverlight not working?

According to how Silverlight TwoWay binding works, when I change the data in the FirstName field, it should change the value in CheckFirstName field. Why is this not the case? ANSWER: Thank you Jeff, that was it, for others: here is the full solution with downloadable code. XAML: <StackPanel> <Grid x:Name="GridCustomerDetails"> ...

Putting Checkboxes in TreeView using code-behind not xaml

I've created a (System.Windows.Controls.Primitives.)Popup that contains a Treeview that I'm populating with data read in from a file. The Popup is created in code rather than in xaml. I want to add checkboxes to the treeview in a similar way to the CheckedTreeViewItemSample.xaml that comes in the Silverlight Toolkit. I'm having trou...

Feed DeepZoom control from database.

Does anyone know an example of feeding DeepZoom control from the database, not from the file system? ...

Workaround for some WPF features that are missing in Silverlight

I’m porting a WPF app to silverlight 2, and have come across several WPF features which are presently missing from SL. Could anyone help me with equivalents or suggest workarounds. I want to handle clicks and double clicks on a textbox embedded in a list box. The WPF implementation uses PreviewMouseLeftButtonDown/Up on a listbox contro...

When to unhook events in Silverlight

One-line summary: What is the best practice for unhooking event handlers created in the constructor of a UserControl in Silverlight2? Background: I am currently building a line-of-business application in Silverlight2. As Silverlight is a browser plugin, there is no concept of a Window - everything is done within UserControls. The way I'...