private void SearchButton_OnTap(object sender, GestureEventArgs e)
        {
            Telegram.Api.Helpers.Execute.BeginOnUIThread(() =>
            {
                MorePanel.Visibility   = Visibility.Collapsed;
                AppBarPanel.Visibility = Visibility.Collapsed;

                if (_searchView == null)
                {
                    var searchViewModel = new SearchViewModel(
                        IoC.Get <ICacheService>(), IoC.Get <ICommonErrorHandler>(),
                        IoC.Get <IStateService>(), IoC.Get <INavigationService>(),
                        IoC.Get <IMTProtoService>(), IoC.Get <ITelegramEventAggregator>())
                    {
                        SuppressMessagesSearch = true,
                        Watermark = AppResources.Search,
                        Callback  = ViewModel.ChooseDialog
                    };

                    _searchView = new SearchView();
                    _searchView.ClosePivotAction = visibility =>
                    {
                        Items.IsHitTestVisible = visibility == Visibility.Visible;
                        AppBarPanel.Visibility = visibility;
                    };
                    ViewModelBinder.Bind(searchViewModel, _searchView, null);

                    SearchContentControl.Visibility = Visibility.Visible;
                    SearchContentControl.Content    = _searchView;
                }
                else
                {
                    var searchViewModel = _searchView.DataContext as SearchViewModel;
                    if (searchViewModel != null)
                    {
                        searchViewModel.Text = string.Empty;
                        searchViewModel.NotifyOfPropertyChange(() => searchViewModel.Text);
                    }
                    SearchContentControl.Visibility = Visibility.Visible;
                    _searchView.BeginOpenStoryboard();
                }
            });
        }