silverlight-4.0

asp.net mvc 2 custom service account

I'm trying to deploy ASP.NET MVC 2 Silverlight application with custom service account. I did the following: 1) Domain user account (myAppUser) was created. Domain controller is different from the web server to which I'm trying to deploy my app. 2) On the web server I run the following command: aspnet_iisreg -ga myDomain\myAppUser w...

Set culture globally for a Silverlight 4.0 client

Date formatting has always been a pain because it defaults to the American MM/dd/yyyy. How do I set the default culture for a Silverlight 4.0 client? It would be best, but not essential, if this was based on the user's regional settings. Applying a format string or converter to every date field is not ideal. ...

Define the path data from code behind in silverlight

I have the following below path data which is in xaml. I want to define the same path data from the code behind. <Path Data="M 250,40 L200,20 L200,60 Z" /> ...

Are Extension methods too expensive?

How much will it cost for my programs performance if i add Extension methods to it? Will it work slower or may be will load slower? Thanks. ...

Licensing in a Silverlight 4 application

Does anyone have any experience or suggestions for providing basic licensing support for a Silverlight 4 application? I'm especially interested in the case where the application is running out-of-browser. I'd like to be able to provide some sort of time-limited licensing option in this case. One option I've considered is implementing s...

Silverlight: Individual visibility of a RowDetailsTemplate for each data row

Dear Stackoverflowers :) I'm trying to achive displaying the RowDetailsTemplate of a Silverlight DataGrid depending on a bool Property, bound to a CheckBox Control's IsChecked Property. Insinde of my RowDetailsTemplate there is a single custom UserControl, containing further Controls. Since the DataGrid only allows a global setting (Ro...

Silverlight can't talk to HTTPS web service?

I've got a Silverlight app that talks to an HTTPS web service. On most machines it works fine, however, on some machines it fails consistently. On the machines it fails on, I receive a SecurityException when making a WebClient request to the HTTPS web service. The SecurityException itself doesn't give me any clues as to why it's reall...

How to use NHibernate and DTOs with RIA Services

I’m using NHibernate with RIA Services and Silverlight 4. I create DTOs for transferring the data via RIA Services rather than distributing my domain layer objects (as per Martin Fowler’s First Law of Distributed Object Design: “Don’t distribute your objects!”). The DTO objects are flattened down to two layers from five corresponding ...

How to create sample data collection from my own class in expression blend 4?

Can anyone help me? it seems no way to do this in blend 4 ...

Silverlight designer unhandled exception

When I create a new Silverlight Application (C# if that matters) using Silverlight 4 (with or without WCF RIA Services Checked) and open the MainPage.xaml in the designer I receive an Unhandled Exception has occurred. Stack is below. This is on an unmodified project. I have uninstalled all Silverlight and reinstalled the tools listed...

Sharepoint File Upload

I have a Silverlight Application, that uploads file(s) to a Sharepoint Site. I got it working for a Sharepoint site in my box and in a Sharepoint site in someone else's box, where I login using my Windows account to that site. But I am not able to upload files into Sharepoint sites which are in a different domain / use a different login...

Silverlight ADO.net entity Data Model error

I'm trying to consume a WCF Data Service in a Silverlight App using an ADO.Net Entity Data Model, however I keep running into this error: The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSuppor...

How to change itemTemplate of an item in itemControl at runtime in silverlihgt 4

I have a ItemControl in silverlight 4 with a Canvas as a ItemPanel, the idea is to simulate a canvas area with drag and dop items. ItemsControl has a ItemTemplate with a image and one button. The idea is that when the button of itemTemplate Click the itemTemplate change. Some of my code: (Items Control) <ItemsControl ItemsSource="{Bin...

DesignInstance: Type was not load

Attempt to make a stub data for custom Silverlight 4 control failed. Here is XAML code: <UserControl x:Class="VfmElitaSilverlightClientView.Pages.FieldItem" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expressio...

Silverlight: How to implement CodeBehind code in XAML

There is an int property of the 'CustomControl' (in Silverlight 4 application), TextBlock is displayed inside of the 'Canvas' control: <Canvas Name="canvas" > <Ellipse Fill="Yellow" Canvas.Top="8" Canvas.Left="8" Height="16" Width="16"> </Ellipse> <TextBlock Name="TeamNumberTextBlock" Text="9" Canvas.Top="8" Canvas.Left="8" ...

Silverlight scrolling animation utilizes large amounts of CPU time

In our app, we have some scrolling credits in a ChildWindow. When showing this window, our CPU utilization is very high. The text is using a BitmapCache and hardware acceleration is enabled. Even after removing the clipping rectangle and the drop shadow from the child window, the CPU usage climbs to 80-90%. When I enable redraw regio...

VS2010 Silverlight project add reference defaults to GAC

I have the SL Control toolkit installed on my machine and I have added a reference to the toolkit DLL (System.Windows.Controls.Toolkit.dll) I like to have all my external dependencies in a lib folder under the SL project, so I copied over the DLL from the installation dir of the control toolkit to the lib folder, but if I try to add ref...

Using Blend to set a Timer on an ActionState/Transition with Silverlight 4

I'm a developer who has recently downloaded the trial of Blend and I am trying to get to grips with not using CodeBehind to do stuff - it's very cool but it has quite a learning curve! I started off with these tuts here and implemented some simple animation on the menu as per the example on my poker blind timer. What I want to do now is...

Self hosted cross domain WCF service called from silverlight hosted in sharepoint

Hello, as the title already states I am trying to call a self hosted WCF service (hosted in a windows service) from a silverlight 4.0 application which is hosted in sharepoint 2010. I use the basicHttpBinding and I already tried a lot of things as suggested here: http://www.dotnetfunda.com/articles/article416.aspx or here http://blog...

Minimal references to PRISM/MVVM to have the support for commands

Hi, I am looking for information to which PRIMS/MVVM ddls I have to reference to in my project to have available Prism/MVVM functionality for handling Commands. I plan to use only this part of the frameworks. Regards, Wojtek ...