Vincent Leung .NET Tech Clips

The latest tech clips from the .NET community

All about Behaviors

November 25, 2009 Posted by Vincent Leung | Expression Blend, Silverlight | | No Comments Yet

Expression Blend 3 Mini-Tutorial Screencasts

November 25, 2009 Posted by Vincent Leung | Expression Blend, Silverlight | | No Comments Yet

Skinning and Styling Silverlight Controls

 

To change a look of Silverlight controls the way that you want it to, you can style it by modifying default template of the control. Silverlight controls have XAML based templates that can easily be changed and saved as new template. You can change the look for entire control without writing any line of code in C#. It can be done completely in XAML. However if you want to do minor modifications to the look of control such as change background color or default font you can do it directly in XAML without need to change default template of the control.

For example we can simple change foreground color of text for TabItem control by setting foreground property directly in XAML of that control without need for changing template for that control :

<my:TabItem Header="Buy or earn chips" Foreground="#FF6A1D38">    <Grid>    </Grid></my:TabItem>

This article will show you how to build custom template for Silverlight 3 TabControl.

Easiest way to modify default template for control is to that in Expression Blend. In Expression Blend menus called Objects and Timeline locate your control for witch you want to modify template, right click on it and choose Edit Template –> Edit a Copy . After that Expression Blend will ask you where to save copy of template in UserControl.Resources or in Application.Resources. For this example I will save all templates in Application.Resources in App.xaml file.

EditTemplate

After that you will get a copy of template for TabControl. In this case we have few objects in the template: TemplateTop, TemplateBottom, TemplateLeft, TemplateRight. The objects in the template that are referenced by the code are called parts. We can view the parts in the Parts panel when you are editing a control template in Expression Blend.

TemplatePart

Via Skinning and Styling Silverlight Controls

November 10, 2009 Posted by Vincent Leung | Expression Blend, Silverlight | | 1 Comment

A 10 parts Expression Blend 3 Tutorial for Silverlight

This series of articles were written by Adam Kinney

1. Drawing an emoticon in Expression Blend
First steps in getting to know the tools and workspace in Blend

2. Element Transformations
Learn to use Scale, Rotate, Skew and 2.5D Transformations

3. Get Started with Animation
A Quick Overview on Creating Time-Based Animations

4. Playing Video with the MediaElement
Using the flexible MediaElement control as a reusable Surface

5. Arranging Pictures to Learn Layout
Use the Grid, StackPanel, ScrollableViewer and Border to position Images

6. A Look at Text in Silverlight
Learn about Displaying Text, Font Properties and Embedding Fonts

7. Import an Adobe Photoshop File into Blend
Convert the assets from a Photoshop file into Interactive Controls

8. Styling and Skinning Controls
Customize the Look by Setting Properties and Building Templates

9. Styling and working with Design-Time Data
Explore how Templates and Bindings are used to display dynamic data

10. Giving Behaviors a Test Drive
A brief overview and walkthrough of the Behaviors included with Blend

 

 

October 28, 2009 Posted by Vincent Leung | Expression Blend, Silverlight | | No Comments Yet

Getting Started with Behaviors in Expression Blend 3

 

Step by  step walkthrough using Behaviors

image image

Pete Blois’s MIX Session Video 

image

& his MIX Behavior Pack

Triggers:

  • KeyTrigger
  • TimerTrigger
  • MouseGestureTrigger
  • StateChanged

Actions:

  • ShowMessageBox
  • GoToState action
  • GoToNextState
  • GoToPreviousState
  • ListBoxAddOne
  • ListBoxRemoveOne
  • ListBoxRemoveThisItem

March 25, 2009 Posted by Vincent Leung | Expression Blend, Silverlight | | No Comments Yet

Creating your own custom Silverlight Media Player using Expression Media Encoder & Blend

image

Show how to reuse the code generated by Expression Media Encoder and then create your own “custom” Silverlight Media Player!

Via cheating at creating a silverlight media player

Download Screencast

November 8, 2007 Posted by Vincent Leung | Expression Blend, Media Encoder, Silverlight | | 3 Comments

Microsoft® Expression®

Expression Blend 2 September Preview

Microsoft® Expression®

September 20, 2007 Posted by Vincent Leung | Expression Blend, Silverlight, WPF | | No Comments Yet

VS2008 Beta 2 WPF Designer Cider Features

August 21, 2007 Posted by Vincent Leung | Expression Blend, VS2008 | | 1 Comment

Silverlight Alpha 1.1 and C# in Orcas Beta 1

 

This post describes how a C# developer can set up and run a Silverlight project in Visual Studio Orcas. 

Here are all the pieces you need:

A First Silverlight Project

More…

Charlie Calvert’s Community Blog : Silverlight and C# in Orcas Beta 1

 

del.icio.us Tags: , ,

August 9, 2007 Posted by Vincent Leung | Expression Blend, Silverlight, VS2008 | | No Comments Yet