This topic has not yet been rated - Rate this topic

Use the custom expression editor to set a property (Blend for Visual Studio)

In the Properties panel, you can set properties in numerous ways. At the simplest level, you can enter a value, select a button, or select a value from drop-down list. More complex properties use the subproperty and collection editors. You can also use advanced options to data bind, template bind, or apply a resource to a property.

The following procedure shows you how to set various values using the custom expression editor. The custom expression editor supports XAML syntax, which means that it acts like a miniature XAML viewer for the property value. This is useful if you know the syntax of the XAML value, and you want to quickly paste it into the property value without going through the steps in the Blend for Visual Studio 2012 user interface to set it.

To set a property using the custom expression editor

  1. In the Properties panel, click Advanced options JJ155035.12e06962-5d8a-480d-a837-e06b84c545bb(en-us,VS.110).png beside the property that you want to set, and then click Custom Expression.

    The Custom Expression editor appears.

  2. Type or paste in the XAML value for your property.

    Tip Tip

    You can view the XAML value of any property by opening the custom expression editor, even if the property is a data binding, a resource reference, an object reference, or a simple value. This is useful if you want to copy the syntax of one property in order to paste it into the custom expression editor of another property.

© 2013 Microsoft. All rights reserved.