MahApps.Metro
MahApps.Metro copied to clipboard
Focus on first TextBox in a Flyout
Hi. I'm using a Flyout as my search charm. I want to focus on the first TextBox when the Flyout got focus, and when focus goes out of my charm (for example when user clicked on a control in main window) I want to charm to close. Have you any idea? Is it even possible? Thanks in advance.
Hi,how can I see flyout when I design it in vs2012 or Blend,can you help me?
hi @kavand
the flyout has a IsOpenChanged event ( #413 ). so you can handle which control should get the focus.
@wojiaofsp you can inherit from Flyout itself with own xaml: CustomFlyout.xaml and CustomFlyout.xaml.cs