silverlight

Changeing values in RowEditEnding

Changing values in the RowEditEnding event of a DataGrid I have a DataGrid that has a check box column. Only one row can have the box checked. If the user checks a new box all the other boxes should automatically be unchecked, similar to a radio button. I have tried to implement that behaviour in the RowEditEnding event, but if I modify...

Silverlight Scrollable Content Problem

I am fairy new to Silverlight and I have a problem. I have a grid on a page that is resizable when the user resizes their browser window. In one of the grids columns I want to display dynamically added content that is scrollable, as there is more data than space available. I currently have a scrollViewer with a stack panel inside it, th...

Can you use the Entity Framework directly from Silverlight?

Every example I see of data access in Silverlight seems to be using the RIA Services to get hold of the entities from the back end. Is it possible to use the Entity Framework directly from Silverlight or is that impossible and hence the need to use RIA Services instead? It would seem that using the Entity Framework directly from Silverl...

VOIP functionality (real time voice streaming across max of 5 users) over Silverlight 4.0?

As SL 4.0 has got video and Mic support... How feasible it is to provide VOIP functionality (real time voice streaming across max of 5 users) over Silverlight 4.0, for a web based application? What all are the related challenges? ...

Application Navigation Framework (SL) with MVVM

Hi, how i can use Application Navigation Framework (SL) with MVVM, I'm use MVVM Light Toolkit.. Thanks. ...

Creating media visualization in Silverlight

I'd like to create to some custom visualization effects to a sound wave in Silverlight. As of Silverlight 3 there's the MediaElement class which does a great job in playing sounds/videos. To visualize however I would need some kind of event callback with some information on the currently played segment of the sound. Does the framework h...

Silverlight (3.0): How to add cell padding to a Grid?

How to add easily a cell padding for a Grid in Silverlight? To set Margins for each cell looks very noisy. <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefiniti...

Can you add security to an entity Property with RIA Services?

RIA services allows you to add an attribute to a domain service method like: RequiresRole("Admin"). This will automatically check if the user calling that method has the correct security to do so. I would like to do something similar for a property on an entity. For example, only users in the role "Manager" are allowed to change the "...

Silverlight and Full Trust Issue

We are planning to build a new integration component that can provide us access to user's machine installed apps from our web site. The first word that came to me was ActiveX, but our expertise with the technology was not the best in the past. Thinkink a lit bit more, the work Silverlight also came to my head, but the full trust thing ...

Screencasting of a Silverlight Application?

I have got a silverlight application which basically plays videos among other things, as is portrayed below (Silverlight 3): <Grid x:Name="LayoutRoot" Background="White"> <MediaElement AutoPlay="True" Source="World.wmv" /> </Grid> But, when I 'screencast' it, using Microsoft Expression Encoder 3 Screen Capture the output video is...

Detect Silverlight version required by an assembly

How can I tell whether Silverlight 2 is sufficient for an assembly or Silverlight 3 is required? I have all information that is available through reflection (Mono.Cecil). Same question for SL 3 versus 4. Thanks in advance. ...

Using ItemsControl on a multi-leveled TreeView

My co-worker threatened to put me on TheDailyWTF today because of my property I wrote to be used to build a 3-tiered treeview with ItemsControl. I bear you the footprint: ObservableCollection<KeyValuePair<string, ObservableCollection<KeyValuePair<string, ObservableCollection<MyType>>>>>; My goal was to create an ItemsControl that wou...

what is the best way to do a p2p app on silverlight

I am building a silverlight app and would like to add p2p capabilities - allowing users to send each other data. Is it available out of the box? Should I wait for silverlight 4.0? Do I need a p2p server? ...

Silverlight Xaml: Referencing Code-behind class

Assuming the following view model definition: public class MyObject { public string Name { get; set; } } public interface IMyViewModel { ICommand MyCommand { get; } IList<MyObject> MyList { get; } } And a UserControl with the following code behind: public class MyView : UserControl { public IMyViewModel Model { get; } } If my...

WCF RIA Services - loading data and binding

Hi all, I've just been toying around with the new WCF RIA Services Beta for Silverlight this evening. So far it looks nice, but I've come across a few barriers when trying to retrieve data and exposing it to the UI via binding. First of all, how am I able to get a single integer or string value from my service? Say if I have this metho...

facebook chat in silverlight

I have a silverlight application and i want is that my application should ask for the user name and password and the client should be able to start chat with their facebook friends.Could this be done? and if so then is there sample code available ...

Load a CSV file into a DataGrid

I'm having a go at moving one of our simpler apps to Silverlight (a bit of a learning exercise). I've quickly come unstuck as I can't figure out how to load (or bind maybe?) a csv file to a datagrid (i.e. so you can point the app at a local csv file and display it to the user). I do have boilerplate code to parse a csv file and return a ...

DataServiceQuery

Is there a GetTable or similar method on The ado.net dataserviceContext object in silverlight. I need to write a generic query builder to aid my silverlight LOB app. This could carve the workload in half. I already use expression trees passed in from Lambdas for the Where clause, it would just be could to be able to specify the entity w...

Changing the UI language dynamically

I have a multi-language silverlight application where the resources are stored in resx files for different languages and bound to the buttons' and labels' Content Properties inside the xaml. When setting the thread's UI culture in the constructor of the silverlight's page every thing works fine, but when changing it based on user's sele...

Pros and Cons of JavaFX and Silverlight

I know there is already a question about the performance of Flex, JavaFX, and Silverlight. My question is a bit more broad: We are evaluating the merits of JavaFX and Silverlight to serve as the GUI technology that controls/configures our back-end service (currently written in Java). The service and GUI are usually on the same machine, ...