locked
What is the purpose of the "Command" attribute of a FlyoutAnchor? RRS feed

  • Question

  • A FlyoutAnchor element can optionally have a "Command" attribute. When would I want to use it?
    Tuesday, April 15, 2014 8:00 PM

All replies

  • Based on the documentation here 

    http://msdn.microsoft.com/en-us/library/gg309511.aspx

    you can associate a command to be execute when opening and when closing a fly-out menu. 

    You could possibly use this to filter the elements of a drop-down menu dynamically, based on a set of conditions and data filled on the form.

    • Proposed as answer by Nico-TMVP Wednesday, April 16, 2014 2:40 AM
    Wednesday, April 16, 2014 2:40 AM
  • Hi. Appreciate the response. Problem is that I have tried to use the "command" option of a flyoutanchor without success. I also have use the dynamic population of a flyout but that depends on other attributes. It kinda makes sense for the command of a flyout not to actually do anything other than display the flyout menu structure because how would the flyout know which to do? display the menu structure or execute a command? I am guessing the command of a flyout only makes sense in terms of enable/display rules and not the command itself. Wasn't sure, hence the question.
    Thursday, April 17, 2014 11:40 PM