Свойство | Тип | Описание | |
---|---|---|---|
AddCharToPrefix | void | ||
CauseTimeOut | void | ||
ConvertToPlainText | string | ||
CreateBinding | |||
DeleteLastCharacter | bool | ||
DoHierarchicalSearch | bool | ||
DoSearch | bool | ||
EnsureInstance | |||
FindMatchingPrefix | int | ||
FindMatchingPrefix | int | ||
FindMatchingPrefix | int | ||
FindMatchingPrefix | object | ||
GetCulture | |||
GetCurrentPrefix | string | ||
GetInstance | |||
GetPrimaryText | string | ||
GetPrimaryText | string | ||
GetPrimaryTextFromItem | string | ||
GetPrimaryTextPath | string | ||
OnTimeout | void | ||
ResetState | void | ||
ResetTimeout | void | ||
TextSearchInternal | System | ||
TypeAKey | void |
Метод | Описание | |
---|---|---|
AddCharToPrefix ( string newChar ) : void | ||
CauseTimeOut ( ) : void | ||
ConvertToPlainText ( object o ) : string | ||
CreateBinding ( object item, string primaryTextPath ) : |
||
DeleteLastCharacter ( ) : bool |
Called when the user presses backspace.
|
|
DoHierarchicalSearch ( string nextChar ) : bool |
TextSearchInternal in an ItemsControl containing ItemsControls as children (i.e. RibbonGallery) performs TextSearchInternal on the second level Items.
|
|
DoSearch ( string nextChar ) : bool |
Called by consumers of TextSearchInternal when a TextInput event is received to kick off the algorithm.
|
|
EnsureInstance ( |
Get the instance of TextSearchInternal attached to the given ItemsControl or make one and attach it if it's not.
|
|
FindMatchingPrefix ( |
Helper function called by Editable ComboBox to search through items.
|
|
FindMatchingPrefix ( |
||
FindMatchingPrefix ( |
Searches through the given itemCollection for the first item matching the given prefix. -------------------------------------------------------------------------- Incremental Type Search algorithm -------------------------------------------------------------------------- Given a prefix and new character, we loop through all items in the collection and look for an item that starts with the new prefix. If we find such an item, select it. If the new character is repeated, we look for the next item after the current one that begins with the old prefix**. We can optimize by performing both of these searches in parallel. **NOTE: Win32 will only do this if the old prefix is of length 1 - in other words, first-character-only matching. The algorithm described here is an extension of ITS as implemented in Win32. This variant was described to me by JeffBog as what was done in AFC - but I have yet to find a listbox which behaves this way. -------------------------------------------------------------------------- |
|
FindMatchingPrefix ( |
Helper function called by Editable ComboBox to search through items.
|
|
GetCulture ( |
||
GetCurrentPrefix ( ) : string | ||
GetInstance ( |
||
GetPrimaryText ( |
||
GetPrimaryText ( object item, string primaryTextPath ) : string | ||
GetPrimaryTextFromItem ( |
Internal helper method that uses the same primary text lookup steps but doesn't require the user passing in all of the bindings that we need.
|
|
GetPrimaryTextPath ( |
||
OnTimeout ( object sender, |
||
ResetState ( ) : void | ||
ResetTimeout ( ) : void | ||
TextSearchInternal ( |
Make a new TextSearchInternal instance attached to the given object. Create the instance in the same context as the given DO.
|
|
TypeAKey ( string c ) : void |