Aracılığıyla paylaş


SearchControl Class

Definition

Microsoft internal use only. Represents the Visual Studio common search control.

public ref class SearchControl : System::Windows::Controls::Control, Microsoft::Internal::VisualStudio::Shell::Interop::IVsSearchControlPrivate
public ref class SearchControl : System::Windows::Controls::Control, Microsoft::Internal::VisualStudio::Shell::Interop::IVsSearchControlPrivate, Microsoft::Internal::VisualStudio::Shell::Interop::IVsSearchControlPrivate2
[System.Windows.TemplatePart(Name="PART_SearchBox", Type=typeof(System.Windows.Controls.TextBox))]
[System.Windows.TemplatePart(Name="PART_SearchButton", Type=typeof(System.Windows.Controls.Button))]
[System.Windows.TemplatePart(Name="PART_SearchDropdownButton", Type=typeof(System.Windows.Controls.Primitives.ToggleButton))]
[System.Windows.TemplatePart(Name="PART_SearchPopup", Type=typeof(System.Windows.Controls.Primitives.Popup))]
[System.Windows.TemplatePart(Name="PART_SearchProgressBar", Type=typeof(Microsoft.VisualStudio.PlatformUI.SmoothProgressBar))]
public class SearchControl : System.Windows.Controls.Control, Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate
[System.Windows.TemplatePart(Name="PART_SearchBox", Type=typeof(System.Windows.Controls.TextBox))]
[System.Windows.TemplatePart(Name="PART_SearchButton", Type=typeof(System.Windows.Controls.Button))]
[System.Windows.TemplatePart(Name="PART_SearchDropdownButton", Type=typeof(System.Windows.Controls.Primitives.ToggleButton))]
[System.Windows.TemplatePart(Name="PART_SearchPopup", Type=typeof(System.Windows.Controls.Primitives.Popup))]
[System.Windows.TemplatePart(Name="PART_SearchProgressBar", Type=typeof(Microsoft.VisualStudio.PlatformUI.SmoothProgressBar))]
public class SearchControl : System.Windows.Controls.Control, Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate, Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate2
[<System.Windows.TemplatePart(Name="PART_SearchBox", Type=typeof(System.Windows.Controls.TextBox))>]
[<System.Windows.TemplatePart(Name="PART_SearchButton", Type=typeof(System.Windows.Controls.Button))>]
[<System.Windows.TemplatePart(Name="PART_SearchDropdownButton", Type=typeof(System.Windows.Controls.Primitives.ToggleButton))>]
[<System.Windows.TemplatePart(Name="PART_SearchPopup", Type=typeof(System.Windows.Controls.Primitives.Popup))>]
[<System.Windows.TemplatePart(Name="PART_SearchProgressBar", Type=typeof(Microsoft.VisualStudio.PlatformUI.SmoothProgressBar))>]
type SearchControl = class
    inherit Control
    interface IVsSearchControlPrivate
[<System.Windows.TemplatePart(Name="PART_SearchBox", Type=typeof(System.Windows.Controls.TextBox))>]
[<System.Windows.TemplatePart(Name="PART_SearchButton", Type=typeof(System.Windows.Controls.Button))>]
[<System.Windows.TemplatePart(Name="PART_SearchDropdownButton", Type=typeof(System.Windows.Controls.Primitives.ToggleButton))>]
[<System.Windows.TemplatePart(Name="PART_SearchPopup", Type=typeof(System.Windows.Controls.Primitives.Popup))>]
[<System.Windows.TemplatePart(Name="PART_SearchProgressBar", Type=typeof(Microsoft.VisualStudio.PlatformUI.SmoothProgressBar))>]
type SearchControl = class
    inherit Control
    interface IVsSearchControlPrivate
    interface IVsSearchControlPrivate2
Public Class SearchControl
Inherits Control
Implements IVsSearchControlPrivate
Public Class SearchControl
Inherits Control
Implements IVsSearchControlPrivate, IVsSearchControlPrivate2
Inheritance
SearchControl
Attributes
Implements
Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate2

Constructors

SearchControl()

Creates a new instance of the Visual Studio common search control.

Fields

HasPopupProperty

The HasPopup property.

IsPopupOpenProperty

The IsPopupOpen property.

Properties

AutomationPeerAttached
DropTarget

Gets the drop target that handles drag and drop operations on the control.

HasPopup

Gets a flag indicating whether the control has a popup.

IsPopupOpen

Gets a flag indicating whether the control has a popup that is open.

ToolBarStyleKey

Methods

FocusEnd()

Focus the search text box but don't highlight all of the text, intead move the cursor to the end of the text.

OnApplyTemplate()

Is invoked whenever application code or internal processes call ApplyTemplate.

OnCreateAutomationPeer()

Is invoked whenever application code or internal processes create an automation peer.

OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

Handles receiving focus on the control or any element below this

OnPreviewDragEnter(DragEventArgs)

Provides class handling for dragging objects into the control or any element derived from this control.

OnPreviewDragLeave(DragEventArgs)

Provides class handling for dragging objects out of the control or any element derived from this control.

OnPreviewDragOver(DragEventArgs)

Provides class handling for dragging objects over the control or any element derived from this control.

OnPreviewDrop(DragEventArgs)

Provides class handling for dropping objects into the control or any element derived from this control.

OnPreviewKeyDown(KeyEventArgs)

Handles key presses in the search edit box

Explicit Interface Implementations

IVsSearchControlPrivate.ApplySearchFilter(UInt32)
IVsSearchControlPrivate.ClickDropdownButton()
IVsSearchControlPrivate.ClickSearchButton()
IVsSearchControlPrivate.ClickSearchOption(UInt32)
IVsSearchControlPrivate.DeleteMRUItem(UInt32)
IVsSearchControlPrivate.GetSearchBoxSelection(Int32, Int32)
IVsSearchControlPrivate.SelectMRUItem(UInt32)
IVsSearchControlPrivate.SetSearchBoxSelection(Int32, Int32)
IVsSearchControlPrivate.SetSearchBoxText(String)
IVsSearchControlPrivate2.RestartSearch()
IVsSearchControlPrivate2.SetSelectionDelegated(Boolean)

Applies to