silverlight-4.0

expand an collapse button in datagrid

hi, <sdk:DataGrid MinHeight="100" x:Name="dgCounty" AutoGenerateColumns="False" VerticalAlignment="Top" IsReadOnly="True" Margin="5,5,5,0" RowDetailsVisibilityChanged="dgCounty_RowDetailsVisibilityChanged" RowDetailsVisibilityMode="VisibleWhenSelected"> <sdk:DataGrid.Columns> <sdk:DataGridTemplateColumn ...

Silverlight Toolkit Drag and Drop Target

I tried to get Drag and Drop working between two ListBox Controls. But somehow picking up an item is not possible. Maybe you have a hint for me to get it working My User Control xaml code looks like this: <UserControl.Resources> <DataTemplate x:Key="ItemTemplate"> <StackPanel Orientation="Horizontal"> <Image W...

TeamCity for continuous integration with Visual Studio 2010 solutions/projects

I am running TeamCity build 5.1.1 on a virtual machine that also hosts our SVN environment. A team I support has recently made the move from Visual Studio 2008/Silverlight 3.0 to Visual Studio 2010/Silverlight 4.0 and when investigating how to do continuous integration with Visual Studio 2010 solutions/projects, it is not as cut and drie...

Drag and Drop from Silverlight to WPF

Hey guys, I'm wondering if anyone has been able to Drag some item (let's say an image with an id) in silverlight and drop it in a listbox in WPF. If you have please help ;) Thanks, S ...

Getting "An entity with the same identity already exists in this EntitySet" but the EntitySet is empty

When I try to add a new item to my EntitySet, I'm getting this exception: An entity with the same identity already exists in this EntitySet However, when I inspect the EntitySet its count is 0. Any ideas why I would be getting this error when the set is empty? How could an entity already exist in the set if the set has no items ...

json support in visual studio 2010

Hi, I'm trying to work on a new project parsing some JSON data for a Silverlight 4 project (specifically created as a "Silverlight Business Application - Visual C#" project) using C# in Visual Studio 2010, and I can't find how to include the references to have parsers and native object support for JSON data. As far as I know my devel...

Datagrid binding 2 datafiled under one column along with an image?

hi, here i am performing nested grid operation where in my first datagrid . have name,age,address once user clicks the row we will be showing another grid that is with data Subject name and Score untill here the functionality works fine . 1:now the Question is that i should be displaying an image along with score in the same c...

Silverlight unit testing (using NUnit)

I'm using NUnit for testing back-end. Unit tests are being executed while building (I'm using TeamCity for continuous building). Now I hove to test front-end (Silverlight 4.0). Because the tests are being executed while building, I have to simulate browser (TypeMock - is not free, isn't it?) could I use NUnit.Mocks somehow?. How to use...

Save the sortorder from a datagrid

I whant to save the sortorder and the selectedIndex from my Silverlight datagrid. I use: Application.Current.Resources.Add("CurrentIndex", dg.SelectedIndex); to save the selectedIndex. If my list was sorted when i selected a item the index will not be correct when returning to the datagrid. How do I save the sortorder so the correc...

how to reference drageventArgs in xaml as command parameter with silverlight

Hi, on my silverlight 4 app I am trying to link up the drop event on a list box to my viewmodel. I am using expression blend 4's event trigger and invokecommandaction to hook up the drop event. Setting break points on my viewmodel, I can see the relevant function is fired when I drag a file onto the list box, however I cant seem to ge...

simple data binding to datagrid not happening

hi, i have an datagrid i am trying to bind an value to label which is under datatemplate but no binding is happening her. ? <sdk:Label DataContext="{Binding CompanyName}" Width="50" /> i have an column which is above datatemplate there the values are getting binded. <sdk:DataGridTextColumn Header="CompanyName" Binding="{Bindi...

Silverlight 4 - elevated permission *inside* the browser

I know Silverlight 4 can handle elevated permissions outside the browser. Is there a way to accomplish this inside the browser? I need to make a folder/file upload manager that gives a better user experience than the standard , and I'd like to implement it in Silverlight. I know Java has an option to gain elevated permissions, but you...

Is it possible to have two browsers, one with Silverlight 3, one with Silverlight 4?

For development reasons, I can't install Silverlight 4 on a particular machine. Is it possible to install the Silverlight 4 plugin on one browser, e.g. in Chrome or Opera, while Firefox and Explorer continue to use the Silverlight 3 plugin? ...

Call JavaScript function from Silverlight 4.0 application

I am trying to call a function from a Silverlight application. It should be a very simple task to do but so far I am not getting the result that I am looking for. This is my Silverlight code: private void button2_Click(object sender, RoutedEventArgs e) { HtmlPage.Window.Invoke("SayHello", new string[] { "Salut!" }); ...

how to show data on mouse over in datagrid

hi, i have an Datagrid lets say i have columns with name, age, mail ID. so all the details should be shown in a pop up or some thing like side also will do. is there any thing like an slide control so that once i make a mouse over the row i display that row values in silde? i need to show an pop up with details what i h...

Authentication Problem in Silverlight - Cannot connect to SQL Server

Hi All, At the moment, when I try to register a user using the default Business Template in Silverlight, I am getting an error. Basically I am following a tutorial found on Channel 9 on how to build a business app with Silverlight. "An error has occurred while establishing a connection to the server. (provider: Named Pipes Provider, ...

Unable to cast type isse in silverlight

Once I click on the button i am getting this error. This is my code <sdk:DataGrid MinHeight="100" x:Name="dgCounty" AutoGenerateColumns="False" VerticalAlignment="Top" IsReadOnly="True" Margin="5,5,5,0" RowDetailsVisibilityChanged="dgCounty_RowDetailsVisibilityChanged" RowDetailsVisibilityMode="VisibleWhenSelected"> <sdk:DataGrid...

Return Count from Netflix oData Service When the LINQ Count() Method Doesn't Work

Is there a way to use a LINQ expression to request a Count query from the Netflix oData service in Silverlight 4? The Netflix documentation shows that you can return counts by appending $count to a request for a collection, but a URL like this: http://netflix.cloudapp.net/Catalog/Genres/$count Is not generated from an expression like...

Should I use ICommand or Expression.Interactions InvokeCommand for MVVM in Silverlight 4?

I'm about to embark on a new project in Silverlight 4, and definitely want to take advantage of the MVVM pattern, now I've finally grasped the basics. For implementing commands in Silverlight 4 it seems there are rather a lot of options ranging from the new built-in Command/ICommand option on the Button, over the InvokeCommand defined i...

Is it possible to aggregate wcf calls in a silverlight client?

I have a silverlight application that is like a portal where user-defined widgets will be calling wcf services. Since these components could be quite chatty I would like to hijack the service calls and have them flow through a single client proxy that could throttle, potentially cache results, etc. So the idea would be to have the disp...