PropertyChangedTrigger

You can use the PropertyChangedTrigger trigger to trigger an action when the property of an object changes (such as the Fill of a rectangle, the Width of a button, or another property change).

To add a PropertyChangedTrigger

  1. In the Assets panel, click Behaviors, and then drag the behavior that you want onto the object that you want to apply the behavior to. The Trigger category appears in the Properties panel.

  2. In the Trigger category, next to TriggerType (EventTrigger), click New. In the Select Object dialog box, click PropertyChangedTrigger, and then click OK.

    PropertyChangedTrigger

  3. In the Trigger category, in the Binding box, select the element whose properties you want to bind to. You can use the ****Artboard Element Picker ****Artboard Element Picker (data-bound) to select the element directly on the artboard. Alternatively, you can click ****Data Bind ****Data Bind icon to display the Create Data Binding dialog box and select properties to bind to.

    Note

    In the Create Data Binding dialog box, select the property that you want to monitor for changes.

To see a sample of this behavior, visit the Expression Community Gallery Ff724010.xtlink_newWindow(en-us,Expression.40).png.

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.