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.