private static void OnTextPropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { SearchTextBox stb = o as SearchTextBox; if (stb != null) { stb.UpdateSearchButtonIsEnabled(); } }
private static void OnInstantSearchDelayChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { SearchTextBox stb = o as SearchTextBox; if (stb != null) { stb._searchDelayTimer.Interval = ((Duration)e.NewValue).TimeSpan; stb._searchDelayTimer.Stop(); } }
private static void OnAllowEmptySearchesChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { SearchTextBox stb = o as SearchTextBox; bool allowEmptySearches = (bool)e.NewValue; if (stb != null && stb._searchButtonHost != null) { if (allowEmptySearches) { stb._searchButtonHost.IsEnabled = (stb.Command == null) ? true : stb.Command.CanExecute(stb.CommandParameter); } else { stb.UpdateSearchButtonIsEnabled(); } } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 7 "..\..\..\MainWindow.xaml" ((XstReader.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: this.treeFolders = ((System.Windows.Controls.TreeView)(target)); #line 34 "..\..\..\MainWindow.xaml" this.treeFolders.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.treeFolders_SelectedItemChanged); #line default #line hidden return; case 3: #line 48 "..\..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.exportAllProperties_Executed); #line default #line hidden return; case 4: #line 49 "..\..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.exportAllEmails_Executed); #line default #line hidden return; case 5: this.btnOpen = ((System.Windows.Controls.Button)(target)); #line 64 "..\..\..\MainWindow.xaml" this.btnOpen.Click += new System.Windows.RoutedEventHandler(this.btnOpen_Click); #line default #line hidden return; case 6: this.txtStatus = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.listMessages = ((System.Windows.Controls.ListView)(target)); #line 70 "..\..\..\MainWindow.xaml" this.listMessages.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listMessages_SelectionChanged); #line default #line hidden return; case 8: #line 76 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.GridViewColumnHeader)(target)).Click += new System.Windows.RoutedEventHandler(this.listMessagesColumnHeader_Click); #line default #line hidden return; case 9: #line 87 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.GridViewColumnHeader)(target)).Click += new System.Windows.RoutedEventHandler(this.listMessagesColumnHeader_Click); #line default #line hidden return; case 10: #line 97 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.GridViewColumnHeader)(target)).Click += new System.Windows.RoutedEventHandler(this.listMessagesColumnHeader_Click); #line default #line hidden return; case 11: #line 107 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.GridViewColumnHeader)(target)).Click += new System.Windows.RoutedEventHandler(this.listMessagesColumnHeader_Click); #line default #line hidden return; case 12: #line 118 "..\..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.exportEmail_Executed); #line default #line hidden return; case 13: #line 119 "..\..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.exportEmailProperties_Executed); #line default #line hidden return; case 14: this.searchTextBox = ((SearchTextBox.SearchTextBox)(target)); return; case 15: this.scrollTextMessage = ((System.Windows.Controls.ScrollViewer)(target)); return; case 16: this.txtMessage = ((System.Windows.Controls.TextBox)(target)); return; case 17: this.wbMessage = ((System.Windows.Controls.WebBrowser)(target)); return; case 18: this.rtfMessage = ((System.Windows.Controls.RichTextBox)(target)); return; case 19: this.listRecipients = ((System.Windows.Controls.ListView)(target)); #line 190 "..\..\..\MainWindow.xaml" this.listRecipients.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listRecipients_SelectionChanged); #line default #line hidden return; case 20: this.listProperties = ((System.Windows.Controls.ListView)(target)); return; case 21: this.listAttachments = ((System.Windows.Controls.ListView)(target)); #line 247 "..\..\..\MainWindow.xaml" this.listAttachments.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listAttachments_SelectionChanged); #line default #line hidden return; case 22: #line 274 "..\..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.attachmentCommand_CanExecute); #line default #line hidden #line 274 "..\..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.openAttachment_Executed); #line default #line hidden return; case 23: #line 275 "..\..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.attachmentFileCommand_CanExecute); #line default #line hidden #line 275 "..\..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.openAttachmentWith_Executed); #line default #line hidden return; case 24: #line 276 "..\..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.attachmentFileCommand_CanExecute); #line default #line hidden #line 276 "..\..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.saveAttachmentAs_Executed); #line default #line hidden return; case 25: this.btnSaveAllAttachments = ((System.Windows.Controls.Button)(target)); #line 291 "..\..\..\MainWindow.xaml" this.btnSaveAllAttachments.Click += new System.Windows.RoutedEventHandler(this.btnSaveAllAttachments_Click); #line default #line hidden return; case 26: this.btnCloseEmail = ((System.Windows.Controls.Button)(target)); #line 293 "..\..\..\MainWindow.xaml" this.btnCloseEmail.Click += new System.Windows.RoutedEventHandler(this.btnCloseEmail_Click); #line default #line hidden return; case 27: this.rbContent = ((System.Windows.Controls.RadioButton)(target)); #line 297 "..\..\..\MainWindow.xaml" this.rbContent.Click += new System.Windows.RoutedEventHandler(this.rbContent_Click); #line default #line hidden return; case 28: this.rbProperties = ((System.Windows.Controls.RadioButton)(target)); #line 299 "..\..\..\MainWindow.xaml" this.rbProperties.Click += new System.Windows.RoutedEventHandler(this.rbProperties_Click); #line default #line hidden return; case 29: #line 301 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnInfo_Click); #line default #line hidden return; } this._contentLoaded = true; }