Silverlight

Cross Domain Error Fix for Silverlight

Cross Domain Error Fix for Silverlight

The easiest/quickest way to fix a cross domain error is to create a test website to host your Silverlight application. When you hit F5 to debug the application, it will run the development server and the address bar will say http://localhost:xxx/blahblah.  This will prevent a cross-domain error. If you try to run it using an(…)

Set a Clip in Code-Behind

Set a Clip in Code-Behind

You can use the Clip property on any item to clip its display area. For example if you have this two items rectBlue and rectRed like this And you want to animate rectRed by sliding it out from the right side, without clipping it would look like this But if you set the Clip property(…)

Silverlight: TemplateBinding Throwing an Error

This drove me crazy for about half an hour…  I attached this style to a button

Everything compiled fine but the page wouldn’t look right and expression blend would not display it correctly and would display the error message: The member “Content” is not recognized or is not accessible. I have not idea how(…)

Silverlight Tip: Fill the browser window

Silverlight Tip: Fill the browser window

RE: Silverlight 2 Beta 1 with Blend 2.5 March 2008 Preview You can Make your XAML silverlight page fit the whole browser window. In Blend, select the user control from the objects and timeline Set the width and height to Auto and the horizontal and vertical alignment to stretch There will be arrows surrounding the(…)