Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RemoveElementAction

Expression Studio 4.0

You can use the RemoveElementAction action to easily remove an element from a logical tree.

To add a RemoveElementAction

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

    NoteNote

    The object to which the behavior is added provides the context within which the behavior operates.

  2. In the Common Properties category, in the TargetObject drop-down list, select the element that you want to remove. You can use the Artboard Element Picker Artboard Element Picker icon to select the element, or you can use Browse to pick the element from a list of elements that appear on the artboard.

    NoteNote

    If not set, the TargetObject property will default to the object that the action is attached to.

    RemoveElementAction

When you are running your application and you trigger the RemoveElementAction, the element that you targeted will be removed.

Subsequent invocations of the action will have no effect, because the element will have already been removed from the tree.

NoteNote

If the element that you targeted contains children, all of the children will also be removed.

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

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.