timheuer / callisto

A control toolkit for Windows 8 XAML applications. Contains some UI controls to make it easier to create Windows UI style apps for the Windows Store in accordance with Windows UI guidelines.
http://timheuer.com/blog/archive/2012/05/31/introducing-callisto-a-xaml-toolkit-for-metro-apps.aspx
Other
338 stars 108 forks source link

No Way to Dismiss open Flyout #209

Closed KevinAnthony closed 11 years ago

KevinAnthony commented 11 years ago

When Attaching a Menu to a Flyout, there is no way to dismiss the flyout when the user selected one of the menu items.
flyout.IsOpen = false; flyout.Dispose(); flyout.Visibility = Visibility.Collapsed; flyout = null; flyout.width = 0; flyout.height = 0; someotherbutton.Focus(...);

None of those work

timheuer commented 11 years ago

Can you provide a snippet. The test app does this and dismisses just fine. When you select an item in the menu (assuming you have either a command or Tapped event being handled) it should do this (and does in the sample app)