LP Pinsonneault blog's

Windows 8, Windows Phone, ...


Ottawa Code Camp – My presentation

Yesterday i did a presentation that was about Silverligth and Data called Data Matters. I’m very proud of my presentation i felt confident so i were able to stay in control and don’t loose focus.

The other guys (Colin Melia, Peter Henry, Sylvain Boucher) that are presenting with me did great presentation! Good job guys!

Through all the session we were building a complete project. The project that we build is available on CodePlex: http://ottawacodecamp.codeplex.com/. So feel free to download the code and test it.

Here is the PowerPoint for my presentation:


Expression Blend for Developers at TechDays 2009 Montreal – Part 2 – Creating Glass Effect

For the second part i will show you how to create some glass effect. Just as a reminder i’m not a graphic artist, i’m .NET Developer. As you can see Expression Blend allow any developer to improve the design without the help of a graphic artist or images (keep in mind Silverlight and WPF are vector graphic base).

Starting with the background I've created in the previous post we will add some stuff to have parts of the application looking like glass.

Now we will add an header that will look more fancy and glassy. First we will add a rectangle.


Again we will use the gradient properties to add the required effect. So we will change the background to use the gradient.


Now we will change the start anchor and set the Alpha to 20. After we will add a new anchor in the middle and set the Alpha to 50. We will add another anchor to the right of the last one just added, and we will set the Alpha to 15. Finally we will set the Alpha of the last anchor to 0.


To polish this title bar we can add a drop shadow. To do so, in the Properties under Appearance, there is a property called Effect. We now click on the New button. In Expression Blend there is some predefined effect available. You can now select DropShadowEffect.






Now we have an header that look a lot better. As you can see if we resize the window, the the opacity effect is visible in the header.



Now you can add some text in the header. You can also apply the DropShadowEffect on the text to make it more readable. And again you can play with the Gradient. Here is an example:


Now we will add glass effect over an image. So add an image in your application. Over this image we will add a new rectangle. This will be the object that will create the glass effect.

image image

Now we will set the gradient to a really soft blue #CEDDEC. Now we will need 4 anchor in our gradient slider. And the only thing that will change is the Alpha on each anchor.
(From left to right)
- 1rst : Alpha = 80
- 2nd : Alpha = 25
- 3rd : Alpha = 50
- 4th : Alpha = 30

Also I've changed the gradient arrow to make the illusion of the direction of the light.


The final result:



Next part: Working with Template and data binding to a sample data source.