示例#1
0
        private void OnSearchChanged()
        {
            SearchChangedEventArgs args =
                new SearchChangedEventArgs(txtSearch.Text);

            args.RoutedEvent = SearchChangedEvent;
            RaiseEvent(args);
        }
示例#2
0
        private void OnSearchChanged()
        {
            SearchChangedEventArgs e = new SearchChangedEventArgs(
                this.txtSearch.Text);

            e.RoutedEvent = SearchChangedEvent;
            this.RaiseEvent(e);
        }
示例#3
0
 private void SearchControl_SearchChanged(object sender, SearchChangedEventArgs e)
 {
     MessageBox.Show(string.Format("New Search: {0}", e.SearchText),
                     this.Title);
 }
示例#4
0
 private void SearchControl_SearchChanged(
     object sender,
     SearchChangedEventArgs e)
 {
     MessageBox.Show("New Search: " + e.SearchText);
 }