Ejemplo n.º 1
0
 private void BindSearchToSearchHighlighter()
 {
     SearchRibbonTextBox.SetBinding(
         TextBox.TextProperty,
         new Binding
     {
         Source = Search,
         Path   = new PropertyPath("Search"),
         UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged
     });
     SearchModeListBox.SetBinding(
         Selector.SelectedItemProperty,
         new Binding
     {
         Source = Search,
         Path   = new PropertyPath("Mode"),
         UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged
     });
     SearchTargetComboBox.SetBinding(
         Selector.SelectedItemProperty,
         new Binding
     {
         Source = Search,
         Path   = new PropertyPath("Field"),
         UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged
     });
     FilterToggleButton.IsChecked  = false;
     ExtractToggleButton.IsChecked = false;
 }
Ejemplo n.º 2
0
 private void BindSearchToSearchHighlighter()
 {
     SearchRibbonTextBox.SetBinding(TextBox.TextProperty, CreateBinding("Search", Search));
     SearchModeListBox.SetBinding(Selector.SelectedItemProperty, CreateBinding("Mode", Search));
     SearchTargetComboBox.SetBinding(Selector.SelectedItemProperty, CreateBinding("Field", Search));
     FilterToggleButton.IsChecked  = false;
     ExtractToggleButton.IsChecked = false;
 }