MahApps.Metro icon indicating copy to clipboard operation
MahApps.Metro copied to clipboard

Focus on first TextBox in a Flyout

Open amiry-jd opened this issue 13 years ago • 2 comments

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.

amiry-jd avatar Jun 27 '13 16:06 amiry-jd

Hi,how can I see flyout when I design it in vs2012 or Blend,can you help me?

wojiaofsp avatar Jun 30 '13 13:06 wojiaofsp

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

punker76 avatar Oct 17 '13 11:10 punker76