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

NavigationMenuAction

Expression Studio 4.0

You can use the NavigationMenuAction behavior to associate a particular state with a particular screen. When the screen that the behavior is looking for becomes active, a specified Active state is triggered. When the screen that is loaded is different from what the behavior is looking for, it triggers a specified Inactive state.

Navigation menus are a good example of when you might want to use a NavigationMenuAction behavior.

Because component screens can be reused on multiple pages, it is common to use a component screen to create a navigation menu for your SketchFlow prototype. Visual states are often used to indicate a user action, such as the visual state of a pressed button or selected radio button resulting from clicking a navigation menu item.

In the prototype, when a menu item is clicked, the screen associated with that menu item is loaded. However, the navigation history is discarded. Any state change is also discarded when the next screen is loaded. The screen doesn't preserve the history or the visual state that represents the selected menu option.

With NavigationMenuAction, states are preserved as either Active or Inactive based on the state associated with the screen.

To add a NavigationMenuAction

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

  2. In the Common Properties category, in the TargetObject drop-down list, select the element that exposes the methods that are available to call. You can use the Artboard Element Picker Artboard Element Picker icon to select the element. By default, it looks in the current scope (UserControl, Window, or Template, for example). However, to change the state of a particular element, you should target the element explicitly.

    NavigationMenuAction
  3. In the TargetScreen drop-down list, specify the screen that you want when navigating between Navigation screens. Generally, this will be the same as the TargetScreen.

  4. In the ActiveState drop-down list, specify the state that you want when the screen specified in TargetScreen is displayed.

  5. In the InactiveState drop-down list, specify the state that you want when the screen specified in TargetScreen is not displayed.

    important noteImportant

    The selected InactiveState cannot be in the same state group as the ActiveState that you selected in step 4.

To see a sample of this behavior, visit the Expression Community Gallery Ff723958.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.