silverlight

What do I need to install to compile Silverlight 2.0 applications on my build server

What's the minimum that I need to have installed on my Build Server (in addition to the standard .Net 3.5 stuff) to allow it to compile Silverlight 2.0 applications? I have a Silverlight application that seems to be building correctly, but is not playing nicely with a related Web Application project - see this related question that I a...

WPF/Silverlight XAML Stretch Text Size to Fit container?

Hi I've just started to play with WPF. Is it possible to have the size of the text of a Label or TextBlock size itself to fill it's parent container? Thanks, Mark ...

Anybody knows how to test ICommand properties using Silverlight UT framekwork?

I download command behavior from web and have implemented in my silverlight project. Now I am trying to figure out how to unit test ICommand properties. I know lots of people are working on this, so if you have a good simple example of unit testing ICommand, please let me know. Thanks Dev ...

Silverlight color resources using A="" R="" G="" B="" cause exception in app

When defining a color resource in a Silverlight app using the syntax A="" R="" G="" B="" (any order of parameters) an exception is caused, even though the application will compile fine and display properly in Blend. Example: <UserControl.Resources> <Color x:Key="BlackBG" A="255" R="35" G="35" B="35"/> </UserControl.Resources> Th...

Connection speed test in Silverlight

I'd like to put some sort of "connection quality" indicator on a Silverlight 3 app that would give the user an idea of their connection speed. This could be an icon that turns red, yellow or green to give a basic idea of the performance the user should expect. What's a good way to measure connection speed in Silverlight? ...

Silverlight media player

Hello everyone, I am using VSTS 2008 with C# to develop Silverlight application embedded in web page of an ASP.Net web application. I have embedded in XAML a MediaElement item. My question is, I want to embed the page a Silverlight media player, which could let end user to control the MediaElement item manually to -- play/pause/stop/rew...

Hooking up the ViewModel to the View in Silverlight

I can see two ways to hook up the ViewModel to the View. One is in XAML and the other thru dependancy injection in the code behind. Which method is more preferable? I prefer the xaml method because I don't want any code in the code behind at all, but is there any issues with one over the other? <navigation:Page x:Class="MyNamespace.MyV...

Get path geometry from image

Hi, If i have a logo, let's say done as a jpg or even a png. Any suggestion for how I can use that to define a path geometry? It would be really good if any suggestions could be provided for how i can do it in blend. Thanks ...

Silverlight DataGridTextColumn Binding Visibility

Following my earlier post I am now trying now to bind the visibility of DataGridColumns to a VM notification property. MSDN suggests I should be able to do this with ease. I already have a value convertor and VM notification property that I know works (I have tested these on another element on my page: <CheckBox x:Name="chkAllTeams" Vi...

What is the difference between WCF and the RIA Services Domain Service Class?

I'm just introducing myself to the basic differences between Silverlight 3 and it's predecessor. Looking at Domain Service Class within RIA services, the execution seems quite a bit simplified. Can someone explain the basic differences between this and Windows Communication Foundation? Does the Domain Service Class employ WCF or som...

Silverlight and JavaScript Communication

I'm having a dandy of a time getting Silverlight and JavaScript to communicate with each other. In the page.xaml.cs file, I marked the class as ScriptableType and two methods with ScriptableMember. I then declared: HtmlPage.RegisterScriptableObject("Page", this); When I attempt to invoke either method, I get obj.Content.Page is und...

SliverLight AG_E_UNKOWN_ERROR UserControl Apps.xml Template

Ive created a simple usercontrol and even though the app runs ok applying the template to Im defining the Control Template here App.xaml <ControlTemplate x:Key="myWindowTemplate"> <Grid x:Name="myGrid" Background="Black" Width="50" Height="50"> <ContentPresenter Name="Content"></ContentPresenter> ...

Setting Data Property in Silverlight Path Style

I am trying to put as much properties of a Path element into a Style, this works out ok, as longs as I don't add Data to the Style setters: <UserControl x:Class="Demo.Controls.SilverlightControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width=...

Silverlight Cache Control: Using revision number in url for XAP causes HyperLink to crash SL App!

Hi there, To make sure all our customers receive the latest Silverlight App, we are placing the new revision number on the url for XAP file as follows: <param name="source" value="/ClientBin/ShoeboxViewer.xap?v=5" /> Problem is when we do this, all HyperLink controls (in the Silverlight App) that use relative URLs, throw an internal ...

Sorting by column name string

I have an observable collection. I want to use linq to sort it. I have the propertyname of the property I want to sort (as a string) for my type. What is the best/fastest way to do this? Different propertyname strings will be passed into the function ...

Using Datagrid within RowDetailsTemplate of another Datagrid

I would like to use a DataGrid within the RowDetailsTempalte of another Datagrid. This inner Datagrid should have its columns bound to a property of the current object in the outer Datagrid. For example, if the outer Datagrid is displaying all contacts by first name and last name, if I select a row I should be able to see another Datag...

Asynchronous Callback method is never called to give results from web service from Silverlight

I'm calling off asynchronously to a web service (Amazon Web Services) from a Silverlight app and my callback method is never actually triggered after I start the asynchronous call. I've set up another web service proxy in a console app, and I'm able to make a synchronous call and get a response using the same arguments without any issue...

unable to connect to ASP.Net development server issue

Hello everyone, I am debugging codeplex simple project => http://www.codeplex.com/sl2videoplayer. I am using VSTS 2008 + C# + Windows Vista x86 Enterprise. I have not modified any code of this codeplex project, and just press F5 to run VideoPlayerWeb project. The current issue I met with is error message -- "Unable to connect to ASP.Ne...

Web service access from Silverlight

Hi, I have a problem with a my Web service and i need help. I have a Silverlight project and the ASP part Silverlight.Web. In Silverlight.Web a added a Linq to SQL file, a database userd to validate user login, and a created a service, a asmx file. In Silverlight project a added a Service Reference for my asmx Web Service. After build ...

How to establish database connectivity in Silverlight application?

I am developing a RIA using Silverlight its completely Database Driven Application but I dont know how to establish Database connectivity? I am using MsSQL database and C# ...