void Search_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     LogicalTreeWalker.Walk((FrameworkElement)TabHost.HeaderContent, delegate(UIElement element)
     {
         if (Responder.GetIsSearchResponder(element))
         {
             FocusHelper.Focus(element);
         }
     });
 }
        void GotoLabel_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            ClientStats.LogEventWithSegment("Goto folder (keyboard)", ActivityView.Label.ToString());

            LogicalTreeWalker.Walk((FrameworkElement)TabHost.HeaderContent, delegate(UIElement element)
            {
                if (Responder.GetIsSearchResponder(element))
                {
                    FocusHelper.Focus(element);

                    if (element is TextBox)
                    {
                        var tb = (TextBox)element;

                        tb.Text           = "label: ";
                        tb.SelectionStart = tb.Text.Length;
                    }
                }
            });
        }