C# Class SDE.WPF.SearchPanel

Inheritance: System.Windows.Controls.UserControl
显示文件 Open project: Tokeiburu/RagnarokSDE Class Usage Examples

Public Properties

Property Type Description
Find System.Windows.Input.RoutedCommand
MatchCaseProperty System.Windows.DependencyProperty
SearchPatternProperty System.Windows.DependencyProperty
UseRegexProperty System.Windows.DependencyProperty
WholeWordsProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
_buttonClose_Click void
_buttonFancyMode_Click void
_buttonNext_Click void
_buttonOpenSubMenu_Click void
_buttonPrev_Click void
_buttonReplaceAll_Click void
_buttonReplaceSingle_Click void
_currentDocument_TextChanged void
_cut string
_replace void
_replaceTextBox_GotFocus void
_replaceTextBox_LostFocus void
_replaceTextBox_PreviewKeyDown void
_searchPanel_KeyDown void
_searchPatternChangedCallback void
_searchTextBox_GotFocus void
_searchTextBox_LostFocus void
_searchTextBox_TextChanged void
_textArea_DocumentChanged void
_textArea_PreviewKeyDown void

Public Methods

Method Description
Attach ( TextArea textArea, TextEditor editor ) : void
Close ( ) : void
CloseAndRemove ( ) : void
DoSearch ( bool changeSelection ) : void
FindNext ( ) : void
FindPrevious ( ) : void
OnPreviewCanExecuteHandler ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
OnPreviewExecutedEvent ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
Open ( ) : void
SearchPanel ( ) : System
SelectResult ( ICSharpCode.AvalonEdit.Search.SearchResult result ) : void
UpdateSearch ( ) : void
ValidateSearchText ( ) : void

Protected Methods

Method Description
OnSearchOptionsChanged ( SearchOptionsChangedEventArgs e ) : void

Private Methods

Method Description
_buttonClose_Click ( object sender, RoutedEventArgs e ) : void
_buttonFancyMode_Click ( object sender, RoutedEventArgs e ) : void
_buttonNext_Click ( object sender, RoutedEventArgs e ) : void
_buttonOpenSubMenu_Click ( object sender, RoutedEventArgs e ) : void
_buttonPrev_Click ( object sender, RoutedEventArgs e ) : void
_buttonReplaceAll_Click ( object sender, RoutedEventArgs e ) : void
_buttonReplaceSingle_Click ( object sender, RoutedEventArgs e ) : void
_currentDocument_TextChanged ( object sender, EventArgs e ) : void
_cut ( string selectedText ) : string
_replace ( TextSegment result ) : void
_replaceTextBox_GotFocus ( object sender, RoutedEventArgs e ) : void
_replaceTextBox_LostFocus ( object sender, RoutedEventArgs e ) : void
_replaceTextBox_PreviewKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
_searchPanel_KeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
_searchPatternChangedCallback ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
_searchTextBox_GotFocus ( object sender, RoutedEventArgs e ) : void
_searchTextBox_LostFocus ( object sender, RoutedEventArgs e ) : void
_searchTextBox_TextChanged ( object sender, TextChangedEventArgs e ) : void
_textArea_DocumentChanged ( object sender, EventArgs e ) : void
_textArea_PreviewKeyDown ( object sender, KeyEventArgs e ) : void

Method Details

Attach() public method

public Attach ( TextArea textArea, TextEditor editor ) : void
textArea ICSharpCode.AvalonEdit.Editing.TextArea
editor TextEditor
return void

Close() public method

public Close ( ) : void
return void

CloseAndRemove() public method

public CloseAndRemove ( ) : void
return void

DoSearch() public method

public DoSearch ( bool changeSelection ) : void
changeSelection bool
return void

FindNext() public method

public FindNext ( ) : void
return void

FindPrevious() public method

public FindPrevious ( ) : void
return void

OnPreviewCanExecuteHandler() public method

public OnPreviewCanExecuteHandler ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
sender object
e System.Windows.Input.CanExecuteRoutedEventArgs
return void

OnPreviewExecutedEvent() public method

public OnPreviewExecutedEvent ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
sender object
e System.Windows.Input.ExecutedRoutedEventArgs
return void

OnSearchOptionsChanged() protected method

protected OnSearchOptionsChanged ( SearchOptionsChangedEventArgs e ) : void
e ICSharpCode.AvalonEdit.Search.SearchOptionsChangedEventArgs
return void

Open() public method

public Open ( ) : void
return void

SearchPanel() public method

public SearchPanel ( ) : System
return System

SelectResult() public method

public SelectResult ( ICSharpCode.AvalonEdit.Search.SearchResult result ) : void
result ICSharpCode.AvalonEdit.Search.SearchResult
return void

UpdateSearch() public method

public UpdateSearch ( ) : void
return void

ValidateSearchText() public method

public ValidateSearchText ( ) : void
return void

Property Details

Find public_oe static_oe property

public static RoutedCommand,System.Windows.Input Find
return System.Windows.Input.RoutedCommand

MatchCaseProperty public_oe static_oe property

public static DependencyProperty,System.Windows MatchCaseProperty
return System.Windows.DependencyProperty

SearchPatternProperty public_oe static_oe property

public static DependencyProperty,System.Windows SearchPatternProperty
return System.Windows.DependencyProperty

UseRegexProperty public_oe static_oe property

public static DependencyProperty,System.Windows UseRegexProperty
return System.Windows.DependencyProperty

WholeWordsProperty public_oe static_oe property

public static DependencyProperty,System.Windows WholeWordsProperty
return System.Windows.DependencyProperty