public void ShowReplace()
        {
            SearchUI search = (SearchUI)Template.FindName("searchUI", this);

            search.SearchMode = SearchMode.Replace;
            search.IsOpen     = true;
        }
Ejemplo n.º 2
0
        private static void ReplaceAllExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            SearchUI searchUI = (SearchUI)sender;

            searchUI.RaiseReplaceExecutedEvent(searchUI.SearchText, searchUI.ReplaceText, searchUI.GetSelectedOptions(), ReplaceMode.All);
        }
Ejemplo n.º 3
0
        private static void ToggleModeExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            SearchUI search = (SearchUI)sender;

            search.SearchMode = search.SearchMode == SearchMode.Find ? SearchMode.Replace : SearchMode.Find;
        }
Ejemplo n.º 4
0
        private static void FindExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            SearchUI searchUI = (SearchUI)sender;

            searchUI.RaiseSearchExecutedEvent(searchUI.SearchText, searchUI.GetSelectedOptions());
        }