silverlight-4.0

How to enable auto-scroll for silverlight page

There is a Silverlight page, it's width is 810 pixels, height is not specified: <NavigationControls:Page x:Class="VfmElitaSilverlightClientView.Pages.SquadView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsof...

'Databinding complete' event for Silverlight 4.0 DataGrid?

I have a DataGrid that I have bound to a property: <cd:DataGrid Name="myDataGrid" ItemsSource="{Binding Mode=OneWay,Path=Thingies}" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"> ... When the Thingies property changes, once all rows in the DataGrid have been populated with the new contents o...

Login Silverlight Website

Wich is the best (and safest) way to implement user login for a silverlight application? ...

silverlight out of the browser is not showing on desktop

my silverlight application is not showing on desktop after instillation it only shows in all programs list. is there something in the configuration or it's about the windows ? ...

Resharper bug when referencing silverlight assembly from CLR class library

I'm starting with a new application using silverlight and the first problem I have with Resharper is in my unit test project. My configuration is: -> Resharper 5.1.1727.12 -> MyProject.Tests (CLR 4.0) nunit.framework.dll (CLR 2.0) moq.dll (CLR 4.0) MyProject.Silverlight (Silverlight 4.0) The test project compiles, no errors and th...

Opening child window multiple times

Hi... I have a collection of employee objects and i have a print screen to print the emploee information. I want to print all the employees information using the employee print screen. After printing first employee I have to do some code change and next I have to print the second emploee. I am using the silvelight child window for the p...

Drag/drop from ListBoxDragDropTarget to PanelDragDropTarget

Using the Silverlight 4 toolkit, is it possible to drag and drop from a ListBox to a Canvas (and get an event on the drop into the Canvas)? I was able to write code to drag/drop from a wrap panel inside a PanelDragDropTarget to a canvas but the event handler did not trigger when the drop occurred. When I tried to drag/drop from a ListBo...

Silverlight Desktop Application in VS 2010 - How do you create one?

When I go to create a new project in VS 2010, if I pick a Silverlight Application, the information displayed on the right says, “for a rich internet application using Silverlight”…It kind of leaves desktop application out of the picture…How do you create a desktop application with Silverlight? ...

Security validation error when try get data from sharepoint using silverlight.

I try to execute this code in Silcerlight 4 contol hosted in webpart: clientCtx = new ClientContext(ApplicationContext.Current.Url); clientCtx.ValidateOnClient = true; clientCtx.Load(clientCtx.Web); clientCtx.ExecuteQueryAsync(updateConnectionStatus, Failed); but it fails and go Failed method and I recive error: "The security validat...

Determine the width of the widest element in a ListBox

When you do not explicitly set the width of a ListBox, it will automatically set its width to the width of its widest visible item. This means that as you scroll up and down and the widest visible data item changes, the width of the listbox itself increases and decreases. So what is the best way to find the width of the widest item in t...

"System.Action claims it is defined" error

I'm building a Silverlight 4.0 application with .NET Framework 4.0, and I'm seeing this error: Reference to type System.Action claims it is defined in 'c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\mscorlib.dll', but it could not be found (CS1684) - c:\Program Files\MSBuild\Seesmic\SDP\Seesmic.Sdp.Utils.dll ...

Building a Silverlight DataTemplate in c# code

Hi This might be more of an outcry, but building DataTemplates in Silverlight code seems to be impossible. The one option I am aware of being using XamlReader.Load(string), one is met with several issues using this approach: No validation, everything is done in concatenated strings. We all know this sucks Any necessary resources have ...

mediaelement source resizing

msdn said that it is best to re-encode the media to the desired size using a media encoding tool if i wanna resize the media. however i can't leave the mediaelement without setting it's width and hight but there must be an workaround ...

How to do a server-side Insert/Update (Upsert) from Silverlight RIA services

While RIA services seems very good for table operations & queries, I am stuck on one traditional update situation. The UPSERT (Update if exists, else Insert new): First: I want to add a record server-side if the record does not already exist, otherwise if it already exists, I want to update one of its current field values. Second: I do...

Silverlight 4 Datagrid Plus Minus button in DataGrid Header

Hi I am using silverlight 4 + MVVM Architecture & My Question is, I am using RowDetailsTemplate in DataGrid & My First Column is a button which will have "+" or "-" value & I am Binding this datagrid to observable collection which has a string type value called SIGN = "+" or "-" & I have a button in the DataGrid Header & in its OnClic...

Is it possible to specify <SupportedCulture> from code behind

Is there a way to specify the <SupportedCulture> from code behind? Or is there any way I can avoid specifying this tag in the project file? Edit: For HiTech Magic's comment. I have sample browser contains, multiple samples. All will be dynamically displayed in the sample browser. What I'll create is Only XAML and it's code behind. My s...

Returning nested complex types from EF4 using Stored Procedures

Is it possible to return nested complex types from multiple different Stored Procedures using EF? (e.g. ClientSelect, ClientAddressSelect) I have imported a few stored procedures and added function imports and created a Complex Type for each of the return types. (e.g. Client and ClientAddress). Now, for example, I want to add the Clien...

Silverlight 4.0 - image cropping with mouse events

Hi, I have a task to build image cropping functionality in Silverlight 4.0 application. What I need to do is to have user on the left button mouse click select area to remain after cropping is applied and then call some other event (button click maybe) to apply that cropping itself. I did develop similar functionality for rotation. I a...

ieframe.dll error while running silverlight application in IE9

I've recently updated my Internet Explorer version from 8 to 9. Now, I'm getting the following exception This is kind of weird. Following are the re-producing steps. Open a Silverlight application [Currently, using Silverlight 4]. Use Clean, Build and Run. [The above mentioned exception occurs] Now, again hit refresh in browser. [The...

create table at runtime in silverlight

Hi , How can i create a table at runtime in Silverlight. In my project i am migrating from asp.net to Silverlight . In asp.net i use Response.Write(""); In this way i generate a table . please let me know how i can generate a table in similar way at runtime in Silverlight .. Edit Content from "answer" My Grid has to look as shown...