Entries Categorized as 'Silverlight'
March 18, 2008
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 test html […]
Posted in Silverlight, Tips & Tricks, Web Dev
No Comments »
March 17, 2008
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 on […]
Posted in Programming, Silverlight, Tips & Tricks, WPF
No Comments »
March 14, 2008
This drove me crazy for about half an hour…
I attached this style to a button
<Style x:Key=”NavButtonStyle” TargetType=”Button”>
<Setter Property=”Opacity” Value=”0.8″></Setter>
<Setter Property=”Template”>
<Setter.Value>
<ControlTemplate>
[…]
Posted in Programming, Silverlight
2 Comments »
March 13, 2008
I am not sure if this is a bug or by-design but Canvases don’t stretch the way I expect them to - the Grid control seems to resize better.
If you want your Canvas to stretch and Fill its parent, there is an easy way to do this.
1. On initialization, set the Canvas width and height […]
Posted in Silverlight, Tips & Tricks
No Comments »
March 12, 2008
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 control that lets you […]
Posted in Silverlight, Tips & Tricks
No Comments »
February 14, 2008
Let’s say you are trying to animate a “zoom-in” e.g. zoom to a part of an image. Once the user is done zooming in, he will probably want to zoom back out, you want to animate the zoom-out but in reverse. It turns out to be very easy to do with Expression Blend.
Step 1
Add an […]
Posted in Animation, Expression Blend, Silverlight
No Comments »
February 6, 2008
I wanted to reuse the same animation for multiple objects, which should have been a simple task. Unfortunately, it took me a while to figure it out.
In theory, all I should need to do is set the Storyboard.TargetName property to a different object and I am done. I tried all kind of combinations and […]
Posted in Silverlight
No Comments »