SearchControl SearchControl SearchControl 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, 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, Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate2
type SearchControl = class
    inherit Control
    interface IVsSearchControlPrivate
    interface IVsSearchControlPrivate2
Public Class SearchControl
Inherits Control
Implements IVsSearchControlPrivate, IVsSearchControlPrivate2
Inheritance
SearchControlSearchControlSearchControlSearchControl
Attributes
Implements
Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivateMicrosoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivateMicrosoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivateMicrosoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate2Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate2Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate2Microsoft.Internal.VisualStudio.Shell.Interop.IVsSearchControlPrivate2

Constructors

SearchControl() SearchControl() SearchControl() SearchControl()

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

Fields

HasPopupProperty HasPopupProperty HasPopupProperty HasPopupProperty

The HasPopup property.

IsPopupOpenProperty IsPopupOpenProperty IsPopupOpenProperty IsPopupOpenProperty

The IsPopupOpen property.

Properties

AutomationPeerAttached AutomationPeerAttached AutomationPeerAttached AutomationPeerAttached
DropTarget DropTarget DropTarget DropTarget

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

HasPopup HasPopup HasPopup HasPopup

Gets a flag indicating whether the control has a popup.

IsPopupOpen IsPopupOpen IsPopupOpen IsPopupOpen

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

Methods

FocusEnd() FocusEnd() FocusEnd() 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() OnApplyTemplate() OnApplyTemplate() OnApplyTemplate()

Is invoked whenever application code or internal processes call ApplyTemplate.

OnCreateAutomationPeer() OnCreateAutomationPeer() OnCreateAutomationPeer() OnCreateAutomationPeer()

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

OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

Provides class handling for receiving focus on the control or any element derived from this control.

OnPreviewDragEnter(DragEventArgs) OnPreviewDragEnter(DragEventArgs) OnPreviewDragEnter(DragEventArgs) OnPreviewDragEnter(DragEventArgs)

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

OnPreviewDragLeave(DragEventArgs) OnPreviewDragLeave(DragEventArgs) OnPreviewDragLeave(DragEventArgs) OnPreviewDragLeave(DragEventArgs)

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

OnPreviewDragOver(DragEventArgs) OnPreviewDragOver(DragEventArgs) OnPreviewDragOver(DragEventArgs) OnPreviewDragOver(DragEventArgs)

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

OnPreviewDrop(DragEventArgs) OnPreviewDrop(DragEventArgs) OnPreviewDrop(DragEventArgs) OnPreviewDrop(DragEventArgs)

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

OnPreviewKeyDown(KeyEventArgs) OnPreviewKeyDown(KeyEventArgs) OnPreviewKeyDown(KeyEventArgs) OnPreviewKeyDown(KeyEventArgs)

Provides class handling for receiving key down events on the control or any element derived from this control.

Explicit Interface Implementations

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

Applies to