silverlight

Silverlight (.NET 3.5) - Good free hosting?

I am ramping up a Silverlight application and would like to be able to use a free hosting account to test that it will run properly in a deployed environment. I was wondering if anyone knows some free hosting services for Silverlight 3.0 applications? ...

can't undestand why animation sample from book not working

Anybody, tell me please why this code not working. <UserControl x:Class="slv.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/200...

ConvertBase64ToImage converter from XAML in Silverlight 3

Below is a Class that converts a string (coming from a sql server database) to a picture. How can I call a conversion function from a XAML Image control, so that when I open a childform I will see the image of an individual employee based on what row was chosen in the main forms datagrid. Basically, my question is - can I call a converte...

Silverlight 3 & Deeplinking

I have a requirement to implement some deep linking into a Silverlight application and thought the new navigation framework in Silverlight 3 would be ideal. However after doing some digging about it uses Uri's to 'swap' one piece of xaml for another using the Frame control. What I'd like to do, is use the deep link to select it's rel...

Where can I find good Silverlight application XAML templates & themes ?

Any suggestions would be appreciated. Does not have to be free. ...

Silverlight - managing a large number of themes

Hi, I have a PRISM based silverlight solution under source control. In regards to theming I have a project for each theme, for example 'Theme_Summer', 'Theme_Winter' projects. In reality there may be over 30 of these theme projects. Each theme project contains a selection of resource dictionaries to hold the styles etc along with the im...

deep zoom image drag-and-drop issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to develop Silverlight 3 application using deep zoom. We could use mouse to drag and drop and image. But the image may be dragged out of the viewport area, which makes the viewport area empty -- causing bad user experience. Any ideas how to implement a solution to prevent from draggin...

Where is the right place for resource used by controls in module when using prism?

Normally, all resources are put in app.xmal, or other resources xaml files(as resource dictionary) and then reference it in app.xaml. When applying prism pattern, for those module, there is no app.xaml file. Application class is replaced by a class implementing interface IModule. So where is the right place for resources used by contro...

RiaContext Authentication on IIS

RiaContext.Current.Authentication.LoadUser().Completed += new EventHandler(User_Completed); ... void User_Completed(object sender, EventArgs e) { CapacityDomainContext _capacityContext = new CapacityDomainContext(); _capacityContext.GetSession().Completed += new EventHandler(Session_Completed); } The code above works perfectly in vis...

How do I Unit Test a function that inserts a record into a RIA Services DB?

Hi, This is a sample function that works with an entity, saves it to a db and then causes problems because we can't write a Unit Test for it. Check it out: // this class exists in a Silverlight Class Library public class EmployeeSaver { .... public void Go() { Employee e = new Employee(); e.Name="Jeremiah"...

Silverlight C# LINQ to XML

I'm working on a Silverlight web application that works with XML similar to: <?xml version="1.0" encoding="UTF-8" ?> <ProjectList> <Type>web</Type> <Project> <Id>1</Id> <Name>test web project</Name> <Description>test web project</Description> <ScreenshotList> <Screenshot> <Path>screen1.jpg</...

partial class can't be created in ria service library

When create .NET Ria Service Class Library, VS will create two projects: MyRiaServices(client side) MyRiaServices.Web(server side) Suppose my entity model is in another project: MyData(entity framework) There is an Entity People. Then I want to use partial class to extend this entity in following way: namespace MyData { public pa...

How to draw an arrow in Silverlight.

I need to draw an arrow between controls in a canvas. Currently I'm using the Line object but it doesn't have a way to draw a triangle at the end of the line. This is roughly what I need: [TextBox] <----- [Button] I was trying to subclass Line and add a couple of lines at the end but the class is sealed. How would you build a custom...

Is there a silverlight repeater control (like in ASP.NET)?

I need to show a list of many text strings, each on a line. I need items to be selectable, so i cant use an ItemsControl. I only need one "column" and no sorting, so a DataGrid might be too heavyweight (???) I need up to 1000 items, so a Listbox might be too lightweight (???) What Silverlight control (or Toolkit control) would be bes...

Nicely format an exception into a string

I'd like to build a nicely formatted string of a exception for logging. Doing this from silverlight so options like nlog (not there yet), log4net aren't an option. Anyone seen the code to build up something like: ExceptionType: xxxx Message: xxxx StackTrace: XXX InnerException ExceptionType: xxxx Message: xxxx StackTrace: ...

cannot build silverlight library, what references do I need?

I am converting a normal CLR library over to a silverlight library. SqlConnection, SqlCommand, SqlClient aren't recognized. What libraries do I reference? I am working in Silverlight 3.0. ...

I have some performance related questions about Silverlight Enterprise app development.

I have some performance related questions about SL Enterprise app development. -We have 10.000 rows binding to an ItemsSource control. (A total of 100.000+ UIElements when databound) Q1.How to do this binding in another thread? Because Silverlight gets stuck while the binding happens. Q2.Any other ways to do this that you suggest wit...

How to debug incompatibility between .NET RIA Servces (July Preview) and Silverlight MVVM toolkit?

I have discovered that when I install .NET RIA Services (July preview) it breaks all of my projects that were created with Michael Sync's Silverlight MVVM toolkit. This MVVM toolkit includes a Visual Studio project template which is now failing to build. Here is the message I get: The project file "..\SilverlightModelViewApplication.W...

Union two ObservableCollection Lists

Hi folks, I have two ObservableCollection lists, that i want to unite. My naive approach was to use the Union - Method: ObservableCollection<Point> unitedPoints = observableCollection1.Union(observableCollection2); ObservableCollection1/2 are of type ObservableCollection too. But the Compiler throws the following error for this line:...

IE7/8 ignoring file download request in popup

I'm using Silverlight and I need to allow the user to save some dynamically genereated files. For PDF files I created an http handler and it works just fine when I open it in a popup window. For Excel files I tried every combination of Content-type and Content-disposition but IE8 refuses to open the file. With Fiddler I can see the g...