Expression Blend and Design

The team blog of the Expression Blend and Design products.

  • Expression Blend and Design

    Updated Components for Windows Phone 7 Development


    At MIX, we released an early preview of our support for building applications for Windows Phone 7 that only ran on a pre-release version of the .NET Framework.

    If you have been holding off on upgrading to the latest versions of Expression Blend, Visual Studio, or .NET 4, wait no more! Today, we (along with the Windows Phone team) are releasing an update to the components we released last month to work on the final version of .NET Framework 4.

    Download everything you need below:

    blendicon_3 Expression Blend 4 RC (Refresh)

    Windows Phone Development
    Besides the RC posted above, you will need the following components installed for developing Windows Phone apps:

    1. Windows Phone Developer Tools
    2. Microsoft Expression Blend Add-in for Windows Phone
    3. Microsoft Expression Blend SDK for Windows Phone

    Besides support for .NET 4, there have been some general improvements to the overall design experience, emulator updates, and breaking API changes. You can get a broader overview on the Windows Phone Developer blog.

    As always, we love to hear from you. Please feel free to comment below or use our forums here.

    - The Expression Blend Team

  • Expression Blend and Design

    A Look at Some Advanced Behaviors Features


    Jeff Kelly is back with Part III of his behaviors coverage. This time, he focuses on the more advanced uses of Behaviors  - Kirupa

    In previous posts, I’ve touched on the basic pieces of the Behaviors API and some basic usages of them. In this post, I want to wrap up the discussion of the basic Behaviors API with some discussion of some of the more advanced features exposed by the Behaviors API.

    Advanced Behaviors
    A large amount of interactive scenarios can be described in the language of triggers and actions; that is, when X happens, do Y. However, say I have two actions, A and B, both of which want to read and store information in a hidden (i.e. not exposed to the designer) but shared Foo object. If I implement A and B as actions, each action needs to know how to access the Foo object. There are a number of different ways to approach this, each with various merits and drawbacks. Rather than explore these in depth here, I want to point out a way to approach this problem using Behaviors.

    The complexity in this scenario comes from multiple independent actions sharing a dependency on the Foo object. Consider that rather than having multiple Actions that share and operate on the same data objects, you can instead encapsulate the shared data objects into a Behavior and expose the functionality that would have been provided via Actions as commands on the Behavior. The benefits are two-fold: cohesion is greatly improved, as the data and the commands that act upon that data are now encapsulated in a single class, and second, the interface exposed to the designer in Blend 3 is much more explicit (no more wondering which Actions in a large class library are meant to be used together). Rather than relying on class-naming conventions or first-hand implementation knowledge to convey the relationships between several Actions that all act upon the same data object, the user is presented a single Behavior with each possible operation enumerated and customizable by the designer.


    This is all tied into the Behavior system with the appropriately named InvokeCommandAction. By placing these actions directly on the behavior that exposes the ICommands, we get a really nice benefit: we can use any Trigger built against the Behavior Trigger API to invoke both Actions AND ICommands exposed on Behaviors! In addition to the assorted tooling work in Blend 3 to make invoking these ICommands from XAML easy for a designer, we’ve also added the ActionCommand support class for developers to make creating Behaviors exposing ICommands a breeze. A bare-bones implementation of ICommand that takes a function with either zero or one parameter, ActionCommand saves you the trouble of writing your own ICommand implementation each time you want to write a Command-able Behavior:

    public class MyCommandBehavior : Behavior<DependencyObject>
    	public MyCommandBehavior()
    		this.MyCommand = new ActionCommand(this.MyFunction);
    	public ICommand MyCommand
    		private set;
    	private void MyFunction()
    		// do work...

     Figure 2: Example Behavior exposing an ICommand

    <Button x:Name="BehaviorHostButton" Content="Behavior Host>
                <i:EventTrigger SourceName=" BehaviorHostButton" EventName="Click">
                   <i:InvokeCommandAction CommandName="MyCommand"/>

    Figure 3: Example invocation of an ICommand on a Behavior using InvokeCommandAction

    There is one major caveat to consider with this approach. Because InvokeCommandAction is not a TargetedTriggerAction, you cannot set TargetName to target an arbitrary Behavior; the InvokeCommandAction must be hosted on the Behavior it is invoking commands on. This means that the Trigger that fires the InvokeCommandAction must either be retargeted (by setting SourceName), or must be source agnostic. Also note that like any string-based reference system, the CommandName parameter of InvokeActionCommand is susceptible to falling victim to changing property names or refactorings down the road. Special care must be taken to avoid breaking these implicit links if these names are still in flux.

    You may find yourself writing Actions and Behaviors that have a fairly common use case, and you may want to improve the default design-time experience around that use case. By default when you create an Action, Blend 3 will trigger it with an MouseLeftButtonDown  EventTrigger where we can, or a Loaded EventTrigger if MouseLeftButtonDown isn’t available. However, you may want a custom Trigger instead of an EventTrigger, or maybe just a different default event in an EventTrigger. In order to facilitate this, we’ve added the DefaultTriggerAttribute in the System.Windows.Interactivity namespace:

    public DefaultTriggerAttribute(Type targetType, Type triggerType, 
                                                    params object[] parameters)

    By setting this attribute on an Action class definition or an ICommand property definition exposed on a Behavior, you can specify one or more Triggers to instantiate automatically when that Action or Behavior is created by a user in Blend 3. The first parameter is the type for which to create this Trigger, the second is the type of Trigger to create, and the final is a list of constructor arguments to pass to the Trigger when it is created. If more than one attribute is defined, the most derived targetType that is applicable when the user created the Action/Behavior will be used.

    For example, in the following definition:

    [DefaultTrigger(typeof(UIElement), typeof(EventTrigger), "MouseLeftButtonDown")] 
    [DefaultTrigger(typeof(ButtonBase), typeof(EventTrigger), "Click")] 
    public class MyAction : TriggerAction<UIElement> 

    If MyAction is dragged onto a Button (or another ButtonBase derived class), the Action will be created under a Click EventTrigger. However, if MyAction is dragged onto any other UIElement, a MouseLeftButtonDown trigger will be created for it instead.

    If you’ve read my previous point, you know that each of the core Behaviors classes constrain their AssociatedObject type via a generic argument in the class inheritance definition. However, there is a somewhat subtle complication here in the case of TargetedTriggerAction<T> and EventTriggerBase<T>. In both cases, these classes extend the more basic TriggerAction<T> and TriggerBase<T> and provide a “retargeting” mechanism, allowing Behavior authors to easily target and act upon elements other than the AssociatedObject.

    For TargetedTriggerAction<T> and EventTriggerBase<T>, the generic parameter T does not constraint the type of their AssociatedObject as it does for TriggerAction<T>and TriggerBase<T>. Instead, it constrains the type of the retargeted element (Target/Source properties, respectively).  Because retargeted Behavior classes are usually acting solely on their target, rather than their AssociatedObject, this is usually sufficient. But what if it isn’t?

    Cue the TypeConstraintAttribute. You can apply this attribute to any TargetedTriggerAction<T> or EventTriggerBase<T> in order to constrain its AssociatedObject to the specified type. Blend 3 will enforce it when you are creating an instance of the Behavior type, and the run-time will throw if you manage to violate it anyway (via by-hand XAML manipulation or code behind).

    This post covered quite a bit of ground, but there are a few more topics that we need to go over before calling it a day. Stay tuned for a future post on some of our behaviors-related extensibility features.


  • Expression Blend and Design

    Silverlight Control Styling Tips Articles


    We’ve published eleven new articles on the blog and they all contain information and tips that you’ll find useful when styling common Silverlight 3 controls. First there’s an article with some general tips: it discusses template binding, different ways of binding Content in your template, some of the smarts in the Make Into Control command, and some tips on visual states. Then there are ten articles focusing on specific commonly-used controls. For each of these specific articles the article format includes a list of the control’s visual states and parts, an explanation of the function and importance of each part, a graphical comp of a control and its states, a XAML representation of the control in artwork form, and then in-depth steps for turning that artwork into a template for the control. Here are links to the articles. Enjoy!

    - Steve

  • Expression Blend and Design

    Expression Blend Sessions at MIX10


    If you haven’t had a chance to check out the sessions from MIX10 that showcased Expression Blend 4, the links below should help you out:

    Authoring for Windows Phone, Silverlight 4 and WPF 4 with Expression Blend
    by Christian Schormann and Pete Blois

    Get Microsoft Silverlight


    Dynamic Layout and Transitions for Microsoft Silverlight 4 with Microsoft Expression Blend
    by Kenny Young

    Get Microsoft Silverlight


    Prototyping Rich Microsoft Silverlight Applications with Expression SketchFlow
    by Chris Bernard

    Get Microsoft Silverlight


    This post only focuses on the sessions from MIX that are Expression Blend specific. By now, all of the sessions from MIX should be available online, so head over to the MIX Sessions page to view more:

    Kirupa =)

  • Expression Blend and Design

    Deep Zoom Composer Example (Updated)


    Hi everyone,
    I have posted a quick ZIP file containing a sample project that shows you how to use the output from the Deep Zoom Composer with Silverlight's MultiScaleImage control.

    zipIcons Download Sample (Zip)

    Beyond giving you a working example, this implementation also includes a C# approach to getting mousewheel support in IE, Firefox, and Safari (Mac). You can read more about my mouse wheel support on my blog here.

    For another example using the keyboard, please read Mike Taulty's post on this topic.

    Update: Scott Hanselman has posted a modified version of this code with panning, click-to-zoom, and more! Check it out here.

    - Pete

  • Expression Blend and Design

    Samples and Tutorials for Expression Blend have been updated to match the Release Candidate!


    The Samples and Tutorials for Expression Blend have been updated with the following changes:

    • The samples and tutorials now reflect the Release Candidate (RC) build of Expression Blend. 
    • Additional sources of tutorials and samples were added to the bottom of Samples and Tutorials Gallery - Expression Blend.
    • Each of the tutorials appears much longer than they were before because they have been edited to include more details for each step to help you understand where you might use the information again.
    • The Fabrikam Fast Track tutorial was removed because it is very similar to Fabrikam Catalog Part 2 - Control Templates.
    • The Welcome Screen tutorial and sample were removed because they do not reflect the new Welcome Screen in Expression Blend.

    Thank you.

  • Expression Blend and Design

    Announcing the availability of the March 2006 CTP of Expression Interactive Designer

    If you've been using the January Community Technology Preview (CTP) of Expression Interactive Designer (EID) and you've been waiting for the March CTP that we mentioned in a previous post [1] then you'll be glad to hear that your wait is over!

    We're pleased to present the March 2006 CTP of EID that targets the February 2006 CTP of Microsoft WinFX Runtime Components (RTC). We have had an opportunity to make incremental improvements to various features of the product as well as to incorporate some of your feedback.

    To install this build of Expression Interactive Designer download it from the Microsoft Expression web site at

    To help us make a better product, please send your feedback to us via our discussion forum [2] or our product feedback center on the Microsoft Expression Web site [3].

    Highlights in this CTP include:

    • Compatibility with latest WinFX CTP. The March 2006 CTP is fully compatible with the February 2006 CTP of Microsoft WinFX Runtime Components.
    • Improved grouping for elements. Elements can now be grouped in all containers instead of just within a Canvas panel.
    • Drag and drop. Elements within the structure view of the Timeline palette can now be reordered and drag and dropped into other controls and containers.
    • Improved binding to objects. Properties on objects inside a DataTemplate can now be bound-to directly.
    • Design-time visualization of data. Sample data is automatically generated for you if real data is not available at design time.
    • Improved URI support. Relative project references for URIs are now fully supported.
    • Enhanced clipboard interactivity. An element, as well as all its linked resources, are now copied when pasting that element into a different scene.

    A gallery of samples and tutorials updated for this CTP [4] can be found in the Article Categories section to the right of the blog.

    Very importantly, please also take a moment to read the Readme file for the March CTP [5] which contains known issues and workarounds.


  • Expression Blend and Design

    Windows Phone Developer Tools Released!


    Today, we have released the final version of the Windows Phone Developer Tools. You can download it below:First, download everything you need below:

    blendicon_3 Windows Phone Developer Tools

    This installer will automatically install free, phone-flavored versions of Expression Blend, Visual Studio 2010, and XNA Game Studio.

    If you already have Expression Blend 4 installed, unlike earlier releases, running this installer will update your existing version of Expression Blend 4 and give you the ability to create Silverlight, WPF, and Windows Phone applications:


    Thanks to everyone who has provided feedback over the past number of releases to help us get to this stage. As always, if you have any additional feedback, feel free to post them on the Windows Phone Developer Forums.

    - The Expression Blend Team

  • Expression Blend and Design

    Slicing Images in Expression Design 2


    You've just downloaded the new release of Expression Design 2 and you're anxious to try the new slicing feature. This article will guide you through the process of creating slices which will then be exported to an HTML document. To follow along with the steps outlined below, please download the file. Let's get started.


    Expression Design uses absolute positioning in CSS to position objects in HTML documents. Where the objects are positioned in the artboard is where they will appear in a web browser after exporting the slices to an HTML document. (Remember that the artboard is the area within the Document Frame.) For example, if you want your design to be positioned beginning in the upper left corner of the browser window, position your objects starting in the upper left corner of the artboard. Once your layout is exported to an HTML document, you may alter the positioning in Expression Web.

    Another important consideration is the order in which your slices appear in the Slice Layer, which is created after you create your first slice. Just like the stacking order of objects in Design, the order in which your objects appear in the Slice Layer determines whether the objects are above or below other objects in the HTML document; more on this in the next section.

    Creating Slices

    There are two methods of creating slices in Expression Design. The first method is to choose the Slice tool in the Toolbox and drag around the area you want to define as a slice. Let's do that now. Choose the Slice tool, the 7th tool from the top in the Toolbox (shortcut letter k), and drag from the upper left corner of the frog image to the botton right corner past the drop shadow on the bottom and right sides of the image. When you release the mouse a light blue, transparent object appears over the image. This is the slice.

    When you create the first slice you'll see that a new layer is created in the Layers panel, named Slice Layer. Expand this layer and you'll see an object named Slice1 followed by a file type extension. This is a good time to rename the slice because the slice name will be the name of the exported image and of the CSS class by which the image is referenced in the HTML document. To rename the slice, double click on the slice name in the Slice layer and then type the new name FrogImage and press the Enter key to accept the new name. There's no need to type the file extension as Design will add this for you.

    The second method of creating a slice is to right click on a selected object and choose Create Slice from Selection from the context menu. You can right click on a selected object using the slice tool or any other tool in the Toolbox. Once you choose the Create Slice from Selection option from the context menu, that slice will appear at the top of the slice layer, above previously created slices.

    Regardless of which method you choose to create your slice, it's important to know that the slice will include anything that is visible on top of the object you're creating the slice from. If we were to right click on the gradient filled object at the top of the artboard, the slice would not only include the gradient filled object but also the Green Team text object and the part of the frog image that overlaps the gradient filled object. To eliminate these items from the slice, we'll hide those objects before creating the slice. Let's create a slice using right click method next.

    Expand the layer named Layout in the Layers panel. A new feature in Design 2 allows us to hide individual objects within a layer. Click on the eye icon to the right of the text object named Green Team to hide the Green Team text on the artboard. Locate and click the Eye icon next to the grouped objects named Frog Image to hide the image. Now click on the gradient filled object at the top of the artboard, and then right click on the selected object and choose Create Slice from Selection. Notice that a new slice is added to the slice layer, above the FrogImage.png object, named Slice2. Mouse over the newly created object and notice from the popup preview that the slice includes only the gradient filled object.

    Now click on the eye icons to the right of the Frog Image group and the Green Team text objects to make those objects visible again, mouse over the newly created slice again and notice that these previously hidden objects still do not become part of the new slice.

    Rename your new slice GradHeader.png. Your Layers panel should now look like this:

    Before we move on the adjusting the slice properties we've made so far, go ahead and create slices for the remaining objects which include the Green Team text above the gradient header (remember to hide the gradient filled object first), the navigation bar (hide the buttons and frog image first) and the buttons on the navigation bar (hide the buttons first). Remember to rename the slices as you want them to appear in the final HTML export.

    If you expand the Layout layer in the Layers panel you'll see that the buttons are grouped objects. There is no real advantage to grouping these objects because as long as the text on the buttons aren't hidden first, the text will be included when you create a slice of the button. I simply grouped the objects to make a more organized layout; either way, the results are the same.

    Adjusting Slice Properties

    Click on a slice in the Slice Layer and notice that the Appearance panel is replaced with an Edit Slice panel. Here you can make adjustments to the selected slice properties. A slice will default to a .png file extension but if your slice is a photo you would probably prefer to export the slice as a .jpg file. If this is the case, you would locate the Format value box and, using the arrow to the right you would select the .jpg format. Expand the drop down list now and see what options you have to choose from. When you change a file extension the slice in the Slice Layer will change to reflect the new chosen format file extension and the options in the Edit Slice panel change to the options available for your chosen format. The value box containing Slice contents allows you to see what is included in the slice so you can check or uncheck the objects you wish to include in the slice.

    A large preview window also appears in the Edit Slice panel giving you a visual of the expected output of the slice. You can experiment with changing the values of the various value boxes and checking and unchecking other options to see the results of your adjustments.You also have the ability to change the dimensions of the slice in the Width and Height value boxes in the Edit Slice panel. For the file we can accept the default .png file format and the values set by default for our slices. Let's move on the exporting and viewing the compiled HTML file.

    Exporting to HTML & Slices

    Choose File > Export from the menu bar. In the resulting dialog box, choose Slices in the Items to Export section. You'll see each individual slice in the preview window. Clicking each slice will highlight the slice in the preview. When you're satisfied with the slices, choose HTML & Images in the value box to the right of the Container Name value box and type a name in the Container Name value box. Again, it's not necessary to add the .html file extension as Design will do this for you. Accept or change the Location where the HTML file will be saved and then click the Export All button to create the HTML document and image slices.

    Navigate to the HTML file in Windows Explorer where you saved the document. Notice that the image slices were saved in a separate folder using the name you gave the document in the steps above followed by _files. This makes it easy to change the location of your images if you choose to do so at a later time. Double click on the HTML file to launch Internet Explorer and view your masterpiece. If all went well, you're done and ready to pass the files along to the web designer who will open the and work on the file in Expression Web.

    Before wrapping it up, you might explore the different export container options. In additions to HTML & Images, you can export to XAML WPF Canvas, XAML Silverlight Canvas and XAML Resource Dictionary.

    - Annie Ford

  • Expression Blend and Design

    Windows Phone 7 Themed Videos


    As you can imagine, shortly after a major release like we had, most of us shift our focus slightly towards talking about and sharing how to use some of the cool new features we released. In this first of a two-part series, I hope to make up for the long period of inactivity on this blog by sharing two Windows Phone focused videos that Unni, Billy, and I recorded for Channel 9.

    Overview of Expression Blend for Windows Phone 7
    The first video on this list is one that walks you through, at a breakneck speed, most of the new features we added to Expression Blend to help make building Windows Phone 7 apps easier:

    Get Microsoft Silverlight

    Through the guise of building a Bing Search application, I cover features ranging from our Device Panel to Application Bar support to creating Sample Data from a Class file. You can learn more about these features by looking at some of my more in-depth Windows Phone 7-focused articles.

    Windows Phone Design Templates
    Billy and Unni are up next to showcase some of the templates they created to make creating common Windows Phone 7 UI layouts really easy:

    Get Microsoft Silverlight

    The templates they created cover a wide range of common UIs that you will see, so feel free to use these directly in your own projects or simply as a source of inspiration. Before you can do any of that, of course, download the templates from codeplex first.

    As always, if you have any questions, feel free to comment below. If you recorded some interesting videos, post them in the comments as well.

    Kirupa =)

  • Expression Blend and Design

    Expression Studio RTM & Silverlight news!

    That’s right, we're very pleased to announce that version 1 of our team's suite of end-to-end tools for creative designers is done! The process is now underway to manufacture and distribute the product. For more details on the suite and how you will be able to purchase it, see the Expression Web Site [1].

    The Expression Studio suite consists of four products – Expression Web, Expression Blend, Expression Design and Expression Media.

    There’s yet more exciting news today regarding Silverlight [2], Microsoft’s cross-browser, cross-platform plug-in for delivering the next generation of .NET based media experiences and rich interactive applications for the Web. Silverlight was announced recently at the at the 2007 National Association of Broadcasters conference (NAB2007). Today, at the MIX07 [3] conference, Ray Ozzie and Scott Guthrie placed Silverlight in its longer-term context as part of the .NET platform and tools story. And Blend fits into the Silverlight tools story, too – today we have made available the Expression Blend 2 May Preview [4] which allows you to create Silverlight-based applications (either JavaScript or .NET).






  • Expression Blend and Design

    Generating key splines from a Path drawn in Blend


    In Blend you can author keyframes with ease out and ease in interpolation to give your animations acceleration and deceleration: in other words, life. You can also draw a motion path and animate an element along it. A value curve is a graph of the change in a property value over time, and the combination of different value curves for different properties allows fine control over advanced scenarios such as acceleration along a curved trajectory.

    The previous post Keyframe easing and key splines explains the string of numbers in a XAML KeySpline attribute such as those generated by Blend’s ease out and ease in settings. In a nutshell, the numbers are one keyframe’s worth of control points on a value curve. You can draw a value curve in Blend using the Pen tool and if you associate that curve with an element, a double property, and scales for the axes, then it’s a simple task to generate a set of keyframes and key splines. There are some scenarios where doing this is more appropriate than using Blend’s timeline so here’s a sample application which will get you started. The sample is unsupported but it is offered in the hope that it will be useful, instructive, or interesting.

    Download the ValueCurve2KeySplines source code (Blend Beta 1).

    Once you’ve downloaded and unzipped the sample project files, open and test (F5) the application. After building, the message on the artboard will disappear and the scene will display correctly. In the running application you can see three different-colored value curves, each of which targets a different property of the red plus sign-shaped element. When you click the ‘Generate’ button, an animation is generated from each of the value curves and these animations are saved in XAML format into the build folder in a file named Storyboard.xaml. The animations are also inserted into the application and previewed. The animation generated from the value curves included in the sample resembles an object spring-mounted on a surface and set in motion with a twang. If you’d like to know how the value curves and parameters were assembled then you can recreate it with the following procedure.

    First, you need to delete the value curves and parameters so you can recreate them. Expand LayoutRoot > Graph > ValueCurves and delete the Path elements named X, Y and Angle. Expand LayoutRoot > LegendBd > [StackPanel] > LegendLB and delete the ValueCurveParameters elements named XParms, YParms and AngleParms. On the artboard you’ll notice that the Legend list box is now empty. Running and clicking ‘Generate’ now will have no effect.

    The ‘spring twang’ animation happens over a small area and time period so let’s scale everything up while we’re designing it and then we can set the correct scale later without having to change any curves. Find the TextBlock element LayoutRoot > Graph > Axes > TimeAxis > TimeMax and set the Text property to ‘10’ so that the animation has a duration of ten seconds.

    To recreate the value curve which controls the element’s X coordinate, first double-click ValueCurves to activate it; the yellow border confirms the activated state. Click the Pen tool (or press P) and draw a curve like the one in the diagram:

    Make the first point with a click-drag toward the top-right of the screen to set the control point in that direction. Click-drag to the right to draw each of the subsequent points which will set horizontal tangents at the same time. In the previous post I mentioned that it is not valid for a control point to fall outside the bounding box of the spline which owns it. But some of the tangents shown above (and likely some of the tangents you will draw) are not perfectly horizontal so the control point on one end of the tangent will be breaking the rule. The ValueCurve2KeySplines sample will silently tolerate such errors up to a configurable limit (by default, 5% of the corresponding side-length of the bounding box) and will correct the control point. Any error greater than this tolerance will still be corrected but will provoke a warning message when the ‘Generate’ button is clicked. If you don’t want any automatic correction to take place then set the Window1.controlPointWarningTolerance member to zero and correct your control points manually until no warning message is shown. You can manipulate the control points individually with ALT and the Direct Selection tool (A). In the object tree, name the Path ‘X’ and set its Stroke to DarkSeaGreen and its Fill to No brush.

    Now the value curve needs parameters so you need to create a parameter object which refers by name to the Path element representing the value curve. Make sure the ListBox named LegendLB is visible in the object tree. Click the Asset Library tool (the bottom tool in the Toolbox), click User Controls, and drag ValueCurveParameters out of the library. Be aware that the Asset Library will close as soon as your drag begins, but keep the mouse button pressed and drop the object onto LegendLB in the object tree to create a new ValueCurveParameters item in the ListBox. Name the object ‘XParms’ and then, in the Property Inspector, expand the Miscellaneous category and set the following property values: MaxValue = 350, MinValue = 50, set PathBrush to a SolidColorBrush with the Color DarkSeaGreen, TargetName = ‘Plus’, TargetProperty = ’(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)’, and ValueCurveName = ‘X’. An easy way to determine the TargetProperty and to make sure any necessary property elements exist on the target element is to create a new timeline and animate that property. You can copy the correct property path from the Storyboard.TargetProperty attribute in the XAML. Then you can delete the timeline and the necessary property elements will remain on the element.

    For the element’s Y coordinate, draw a similar curve to the first but out of phase with it. Name the curve ‘Y’ and color it Navy with no Fill. Add a second parameter object (named ‘YParms’) to the ListBox and set the following property values: MaxValue = 350, MinValue = 50, PathBrush = ‘Navy’, TargetName = ‘Plus’, TargetProperty = ’(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)’, and ValueCurveName = ‘Y’.

    Finally, for the element’s angle, draw a third curve out of phase with the other two. Name the curve ‘Angle’ and color it Orange with no Fill. Add a third parameter object (named ‘AngleParms’) to the ListBox and set the following property values: MaxValue = 30, MinValue = -30, PathBrush = ‘Orange’, TargetName = ‘Plus’, TargetProperty = ’(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)’, and ValueCurveName = ‘Angle’.

    The finished application should look similar to this:

    Test the animation and make any adjustments to the value curves to get the behavior you want. Essentially the frequency should be increasing while the amplitude is decreasing. When you’re happy, scale the whole animation down. Set TimeMax to ‘1.5’, set the MinValue and MaxValue of the X and Y parameter objects to 220 and 230 respectively, and set the MinValue and MaxValue of the Angle parameter object to -20 and 20 respectively. Now test the animation again. If you want to use the animation in another application then make sure a target element with the correct name and property elements exist and paste the contents of Storyboard.xaml into Window.Resources. You’ll also have to change the xmlns attribute into an x:Key attribute.

    For another example set of value curves and parameters, you’ll find a file called Example2.txt in the zip file along with the source code. Replace the ValueCurves and LegendLB element in Window1.xaml with the ones in Example2.txt and give the result a try. It’s an example of an element moving along a circular path with increasing speed.

    Happy animating!
  • Expression Blend and Design

    Expression Blend Sessions from TechEd


    A few weeks ago, a couple of Expression Blend team members presented at the TechEd conference held in New Orleans this year!

    You can view those sessions given by Unni/Alan and Dave below:

    Get Microsoft Silverlight

    Get Microsoft Silverlight

    You can browse through all of the sessions by clicking here.

    Kirupa =)

  • Expression Blend and Design

    Announcing the Microsoft Expression Blend Beta 1


    Thanks for being patient! The previous CTP of Expression Interactive Designer was back in September. Since then the team has been focused on some major changes to the product ready for today’s announcement of our first beta. A list of all the new features is given below but something you'll notice immediately is that the product’s name has changed from EID to Microsoft Expression Blend. Also, Blend has a new look!

    The Blend beta requires the Microsoft .NET Framework 3.0 on Windows XP, as described on the following download page.

    Blend is a tool for creative designers to build rich, interactive user-experiences for Windows users. Customizable controls, animation, data binding, 3D and media can be blended together in the tool without the need to write code.

    What's new in the beta?

    Enhanced Properties panel UX
    • Context-sensitive UX makes finding associated properties a snap
    • Improved UX for event & property triggers
    • Support for editing almost all WPF properties such as bitmap effects
    • Built-in search to help you find properties without the need for scrolling
    • Ability to bind data such as a brush resource to any property using a rich UX
    • Unique value editors make it easier to set values without leaving the mouse
    • New editors for collections
    • A new plug-in model that 3rd-parties can use to add their own custom editors

    Redesigned shell
    • Improved docking and panel management
    • New icons enhance usability
    • Darker theme brings focus to the design workspace

    Improved artboard
    • Drag & drop to create elements via a rich asset gallery
    • Snap to grid and snap to alignment makes it easier to layout your controls
    • Enhanced context menu allows you to group into layout containers and set common layout properties
    • Right-click > View XAML allows you to quickly find the associated XAML for an element

    Improved resource management & control template capabilities
    • Resources panel allows you to edit resource values used by your project
    • Support for dragging & dropping resources between dictionaries to re-factor your project
    • Built-in set of controls which are designed to be easy to edit and reconfigure

    Support for Microsoft Visual Studio editing
    • Shared project format with Visual Studio allows easier development-designer workflow
    • Create event handlers in Expression Blend and edit your code in Visual Studio

    Found a bug? Report it to us.

    Have something to say about the beta? Join the discussion group:

  • Expression Blend and Design

    Meet Members of the Blend and Design Teams at MIX


    As many of you know, MIX is Microsoft’s design-focused conference held in Las Vegas near the beginning of each year. Last year, the focus was all about Silverlight 2. Looking through the list of sessions posted so far, the buzz seems to be around Silverlight 3.

    A group of us from the Expression Blend and Design teams will be there, so if you are going to be in the Venetian, feel free to drop by any of the Expression sessions and chat with us. We would love to hear from you.

    If you are undecided on attending, there is a discount if you register by February 14th, so click here.

    Kirupa :-)

  • Expression Blend and Design

    Deep Zoom Composer Updated to Support Publishing to DeepZoomPix!


    Hi everyone,
    We have just released another preview of Deep Zoom Composer, and you can download it from the following location:

    dzcicon Download Deep Zoom Composer

    As always, please uninstall all existing versions of Deep Zoom Composer before installing the new version.

    Quick Intro to DeepZoomPix
    This release coincides with the recent launch of the DeepZoomPix technology preview: If you haven’t seen DeepZoomPix, it is a technology demo where you can upload and view your images using the Deep Zoom technology found in Silverlight:


    A key part of DeepZoomPix is the viewer through which you can browse and interact with your images. Within the viewer, you have the ability to dynamically change how your images are arranged, play a slideshow, view a thumbnail of all images, as well as tag/filter:


    There are a lot of cool things you can do in DeepZoomPix, and you can learn more about DeepZoomPix by reading their FAQ as well watching a video interview with Rado and Matt on how the site was actually created. Janete will have a blog post with more information on DeepZoomPix in the near future.

    Deep Zoom Composer and DeepZoomPix
    As many of you know, not too long ago, we added the ability for you to be able to publish your photos online to PhotoZoom. Based on a lot of requests and feedback many of you have provided about PhotoZoom and the integration with Deep Zoom Composer, we closely followed the evolution of PhotoZoom into DeepZoomPix and were excited to help make Deep Zoom Composer work better with the new service.

    The biggest change is that Deep Zoom Composer will only allow you to upload to DeepZoomPix:


    The workflow and the UI are largely the same, so if you have used the PhotoZoom functionality before, everything should look familiar to you with the exception of a few name changes.

    Our primary motivation for moving to DeepZoomPix was to address the large amount of feedback many of you provided us about PhotoZoom. We hope you all find DeepZoomPix to be more reliable and more fun to use.

    Do note that DeepZoomPix is just a technology demo. It is something that we are only planning on keeping until the end of the year (Dec 31st), and after that, we are not sure what will happen to the service. Please do not use this location as a permanent storage location for your photos.

    Before I wrap up this post, a huge thanks to Matt (who you can see in the video interview above) for helping unwind some gnarly technical issues associated with changing Deep Zoom Composer to use DeepZoomPix.

    As always, please send us  your feedback by posting on the forums or commenting below.

    Kirupa & Janete

  • Expression Blend and Design

    Use SimpleStyles to Easily Style System Controls


    While Blend makes it easy for you to create your own controls, creating your own control may not always be the best solution. In many cases, especially when you want to change how a control looks, styling an existing control may be a better choice. While you can style any control by using Blend's UI, modifying system controls can be time consuming if you are new to WPF and not sure what the consequences of modifying a particular property may be. To make it easier on you, Blend includes a resource dictionary called Simple Styles.xaml that applies an easily-modifiable style to your commonly used system controls.

    To use these simple style controls, go to your Asset Library and select Simple Styles under the Controls tab:


    You will see the simplified versions of your system controls, and they are just like your system controls...except much easier to style.

    The User Guide provides great coverage of how to use simple style controls, so if you need any further information, hit F1 or go to Help | User Guide. In the User Guide, you can find Simple Styles listed under Home | Controls | Working with simple styles, or you can do what I did and just search the User Guide for "simple styles" instead!

    Kirupa Chinnathambi

  • Expression Blend and Design

    Working with Layout when DataContexts are Involved


    Hi everyone,
    When using Expression Blend, a common task you probably engage in is working with layout. Tasks I commonly associate with “working with layout” involve moving things around, rearranging the order of elements, ensuring everything flows when resized, changing your layout container, etc. For the most part, the changes you make to the layout of your application are pretty harmless…except when it involves DataContexts.

    In a nutshell, data contexts allow you to specify the data that elements can inherit and work with. Seems pretty harmless so far. Data contexts can be set on pretty much anything, but because the data is inherited, data contexts are often placed on parent elements (such as a layout container) whose children will inherit the data:


    What seemed harmless earlier now has the potential to cause trouble. Because data contexts are often placed on a layout container, and because data contexts primarily benefit any children listening in, you need to ensure that any layout changes you make do not cause your data context to break. The common ways your data context can break are:

    1. Reparenting a Child
      When a child is inheriting data, do not reparent the child to a location where the data context is no longer inheritable. This will cause your child to look for something that doesn’t exist.
    2. Ungrouping a Layout Panel
      Blend makes it very easy for you to ungroup children from a layout container. When you ungroup a layout container that has a data context set on it, the data context your children rely on will be lost.

    Today, Blend does not let you know when you perform a layout operation that breaks data context. It is up to you to be vigilant, and you can see which element has a data context set on it by looking at its DataContext property:


    If this property isn’t empty, it means that a data context has been set on it. While having a data context set should not imply that data is actually being used, it is a good gauge on whether a layout operation you perform will have any negative side effects on the children involved.

    Kirupa =)

  • Expression Blend and Design

    A small 3D tutorial

    Lingesh Palaniappan [1], a Software Design Engineer in Test in the Expression Interactive Designer team, has published a small 3D tutorial [2] on his blog. In the tutorial, Lingesh walks through creating a sample 3D project in Expression Interactive Designer.


  • Expression Blend and Design

    License Your Expression Programs


    After you buy and install any Expression program, you should immediately license your software to avoid future interruption of the programs. If you don’t license them, the programs will stop running after 60 days or possibly sooner if you have used a trial product key. When you start any unlicensed Expression program, a dialog box may prompt you to enter your product key to license the program. If you’ve closed that dialog without licensing your software or the dialog doesn’t appear, use the following steps to license your software instead:


    ·          To license Expression Blend, Expression Design, or Expression Media, start the program, choose Help > Enter Product Key, and then enter your product key which appears on a sticker on your software box; if you bought Expression Studio, licensing just one of these programs will also license the other two.

    ·          To license Expression Web, enter your product key when prompted during the installation process. If you installed Expression Web with a trial product key, you can license the installed trial program by doing the following: Close Expression Web and open your Control Panel in Windows. Double-click Programs and Features (Windows Vista) or Add or Remove Programs (Windows XP), select Microsoft Expression Web Trial in the list of installed programs, and click Change. In the installer dialog, select Convert and click Continue, and then follow the onscreen instructions to enter your product key.

  • Expression Blend and Design

    The States Pane and WPF Controls


    Last October I described how to use the States pane in a WPF project with Blend 2 Service Pack 1. Things are even simpler with Expression Blend 3 so in this post I’ll remind you how to use the States pane with WPF controls.

    As you may know, when you create a template for a Silverlight control, the States pane populates with States ready for you to select-and-design. This is because Silverlight controls are designed to work with States, and each Silverlight control advertises the States it works with. But WPF shipped before States did and consequently WPF controls know nothing about States. It’s actually the magic in the WPF Toolkit that makes WPF controls work with States. Blend 3 installs the WPF Toolkit for you automatically, so there is nothing extra you will need to do.

    This means that when you create a new template for a WPF control, the States pane is empty initially. But it only takes a few moments to add the correctly-named States and from there you’re on par with the Silverlight experience and you’re ready to select-and-design as usual.

    So, here’s a list of the WPF controls that work with States along with the state groups and states you’ll need to add.

    Button, GridViewColumnHeader, RepeatButton


            Normal, MouseOver, Pressed, Disabled


            Unfocused, Focused

    CheckBox, RadioButton


            Normal, MouseOver, Pressed, Disabled


            Unchecked, Checked, Indeterminate


            Unfocused, Focused



            Normal, MouseOver


            Unselected, Selected


           Unfocused, Focused



            Determinate, Indeterminate


            Unfocused, Focused

    TextBox, RichTextBox


           Normal, MouseOver, Disabled, ReadOnly


            Unfocused, Focused

    Hopefully this helps you to be more productive in WPF when working with states!


  • Expression Blend and Design

    Cutting Shapes in Expression Blend


    Currently, Expression Blend does not have a scissor tool which allows you to cut shapes like you can in Expression Design. Instead, what you do have are geometric operations that allow you to not only achieve a similar result as “cutting a shape” but also do much more.

    Christian Schormann wrote a nice post outlining how to use many of these geometric operations to slice and dice your vector content, so check it out from the following link:


  • Expression Blend and Design

    Overview of New Features in Expression Blend 3 + SketchFlow: Part III


    Hi everyone,
    Continuing the overview of all the new features we introduced in Expression Blend 3, this post wraps up our trilogy by looking at more features that fall under Workflow, Code Editing, and Extensibility. Of course, if you missed the earlier posts, be sure to catch up on Part I and Part II as well.

    Workflow Improvements
    There is a large collection of improvements we made in Expression Blend 3 that can loosely be bucketed under a category called Workflow. Most of the items here are not new features necessarily. They are improvements we made to help make creating applications in Blend more efficient, and dare I say it, fun!

    Revised, Customizable UI
    One of the immediate changes you will see when launching Blend is our more polished, fully customizable user interface where you can rearrange, hide, save/restore workspaces, and move various panels to your heart’s content! Christian Schormann puts this feature to good use when describing how to create a minimal user interface for working with SketchFlow projects: Creating a Minimal Workspace for SketchFlow

    Updated Gradient Tool
    The classic gradient tool that many have used has gotten quite a revamp in Blend 3. You can read more about the changes in Joanna Mason’s blog post on this topic: Creating and Editing Gradients in Expression Blend 3

    Layout Improvements
    Expression Blend 3 introduces several improvements to layout operations. Moving objects with direct manipulation on the artboard is now more consistent and predictable, alignment adorners are shown for more containers, layout properties and bindings are preserved when reparenting or grouping objects, and layout properties are no longer written to the XAML code-behind file unnecessarily.

    Additionally, you can now use the property inspector to change the width and height of an object even when these properties are set to Auto:


    Expression Blend 3 will automatically compute the appropriate margins needed to make sure that the object is the size that you specify.

    Selection Improvements
    In Blend 3, we made some significant changes to the selection model. These changes make it easier to change your selection and draw new objects on the artboard. One such improvement is marquee selection of individual points on a path:


    When you use the Direct Selection tool, you can now select individual points on a path by using marquee selection. Just drag to define the area that contains the points that you want to select.

    Copy and paste images from the Clipboard
    Image data put on the Clipboard by other applications such as Windows Internet Explorer, Adobe Photoshop, and Microsoft Paint can now be pasted directly into Expression Blend 3.

    Easier Access to Template Internals
    If a control includes templates that are applied in specific scenarios, such as when a control has to display a collection of data, those templates now appear in the Edit Other Templates category of the Edit Template item on the Object menu;


    This allows you to access the internals of your controls from a single location more easily than you were able to before.

    Improved UserControl Editing Experience
    When you modify the XAML that defines a UserControl control, you no longer have to rebuild the project to update all the UserControl objects on the artboard. Additionally, you can enter editing mode for a UserControl control by double-clicking one of the UserControl objects on the artboard.

    Searching for files in the Projects Panel
    With Expression Blend 3, you can now search for items in the Projects panel:


    This makes it very easy for you to find items in larger projects without having to manually browse through complicated folders!

    Code Editing Improvements
    One area we received a lot of feedback from many of you was to make our support for editing XAML files better and to add support for editing C# and VB code behind files. In Blend 3 we acted on your feedback and added both a very (in my not so modest opinion) a slick XAML editor as well a C# and VB code-editor with intellisense and other good stuff.

    Here is what our XAML editor looks like:


    We also added very basic support for being able to open and edit text, html, and xml files as well using our new code editor.

    More Extensibility Points
    If you are writing custom controls or providing additional functionality for creating assets for your project, you will find our addition of more extensibility features useful. You can read more about them at Unni’s blog: Blend 3 Extensibility, Writing a Design Time Experience for a Silverlight Control,  A Sample that Shows the New Blend Design Surface ExtensibilityAlternateContentProperty Attribute

    Hopefully the last three posts give you an overview of the new features we have added in Blend. What I’ve written is by no means comprehensive. There are countless under-the-hood changes that you may not directly experience when using Blend, but if there is something that you feel I should call out in a future post, do let me know by commenting below.

    Kirupa =)

  • Expression Blend and Design

    Silverlight 2.0, Sprawl, and a Dash of Snoop!


    Last week, the plans for Silverlight 2.0 were announced with a number of features that can be expected including layout, databinding, controls and templating. On the Blend team we’re extremely excited about the features arriving in Silverlight 2.0 and are very busy building some excellent tooling for it. We don’t have too much information right now, but rest assured that we’re working on it.

    Following from Danc’s earlier post about creating game graphics in Expression Design, a fun Silverlight game that we did together is Sprawl, you’ll see a very similar visual style there:


    The game is all Silverlight 1.0 and took about a day of development time to make once the graphics were done. I hadn’t realized Danc was going to post his Planet Cute drawings, otherwise I would have polished up a sample Silverlight app built off of it :)

    One thing that many people have been pestering me about (and rightly so!) is an update to the Snoop application used for debugging WPF applications. I just wanted to assure folks that I am working on updating it and hopefully will have a quality update in not too long.

    Happy Blending!


  • Expression Blend and Design

    Limited Time: 30% Discount on Expression Studio 3


    Hi everyone,
    For a limited time, there is a 30% discount on all Microsoft Expression 3 products (Microsoft Expression Studio + Expression Web, both full and upgrade versions) through the Microsoft Online Store for US-based customers:


    No promo code required at all – just go to the store and add to the shopping cart!


Page 4 of 9 (217 items) «23456»