static void IsOpenPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { if ((bool)e.NewValue) { RapidFindReplacePopupControl pop = sender as RapidFindReplacePopupControl; if (pop.PART_RapidFindReplaceControl != null && pop.PART_RapidFindReplaceControl.PART_FindTextBox != null) { pop.PART_RapidFindReplaceControl.PART_FindTextBox.Focus(); if (pop._PART_RapidFindReplaceControl.FindOptions.FindAsYouType) { pop.PART_RapidFindReplaceControl.ViewModel.FindTextCommand.Execute(null); } } } }
static void StaysOpenPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { RapidFindReplacePopupControl pop = sender as RapidFindReplacePopupControl; pop._PART_Popup.StaysOpen = (bool)e.NewValue; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\..\Views\MultipleControlTypesSupported.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 2: this.findCtrl = ((Keyoti.RapidFindReplace.WPF.RapidFindReplacePopupControl)(target)); return; case 3: this.g1 = ((System.Windows.Controls.Grid)(target)); return; case 4: this.fld = ((System.Windows.Controls.FlowDocumentScrollViewer)(target)); #line 20 "..\..\..\Views\MultipleControlTypesSupported.xaml" this.fld.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.fld_PreviewKeyDown); #line default #line hidden return; case 5: this.ListBox1 = ((System.Windows.Controls.ListBox)(target)); return; } this._contentLoaded = true; }