InfoBarHostControl InfoBarHostControl InfoBarHostControl InfoBarHostControl Class

Definition

A control that can be used to host InfoBars. The host control observes events on each InfoBar to remove closed info bars from its collection.

public ref class InfoBarHostControl sealed : System::Windows::Controls::Control, Microsoft::Internal::VisualStudio::Shell::Interop::IVsInfoBarHostPrivate, Microsoft::VisualStudio::Shell::Interop::IVsInfoBarUIEvents
public sealed class InfoBarHostControl : System.Windows.Controls.Control, Microsoft.Internal.VisualStudio.Shell.Interop.IVsInfoBarHostPrivate, Microsoft.VisualStudio.Shell.Interop.IVsInfoBarUIEvents
type InfoBarHostControl = class
    inherit Control
    interface IVsInfoBarHost
    interface IVsInfoBarUIEvents
    interface IVsInfoBarHostPrivate
Public NotInheritable Class InfoBarHostControl
Inherits Control
Implements IVsInfoBarHostPrivate, IVsInfoBarUIEvents
Inheritance
InfoBarHostControlInfoBarHostControlInfoBarHostControlInfoBarHostControl
Implements
Microsoft.Internal.VisualStudio.Shell.Interop.IVsInfoBarHostPrivateMicrosoft.Internal.VisualStudio.Shell.Interop.IVsInfoBarHostPrivateMicrosoft.Internal.VisualStudio.Shell.Interop.IVsInfoBarHostPrivateMicrosoft.Internal.VisualStudio.Shell.Interop.IVsInfoBarHostPrivate IVsInfoBarHostIVsInfoBarHostIVsInfoBarHostIVsInfoBarHost IVsInfoBarUIEventsIVsInfoBarUIEventsIVsInfoBarUIEventsIVsInfoBarUIEvents

Constructors

InfoBarHostControl() InfoBarHostControl() InfoBarHostControl() InfoBarHostControl()

Creates a new instance of InfoBarHostControl.

Properties

HostWindowIdentifier HostWindowIdentifier HostWindowIdentifier HostWindowIdentifier

Identifies the window that the infobar is hosted in. This is used only for telemetry purposes.

InfoBars InfoBars InfoBars InfoBars

Gets a read-only list of InfoBar UI elements.

Methods

AddInfoBar(IVsUIElement) AddInfoBar(IVsUIElement) AddInfoBar(IVsUIElement) AddInfoBar(IVsUIElement)

Add an InfoBar UI element to this InfoBar host.

RemoveInfoBar(IVsUIElement) RemoveInfoBar(IVsUIElement) RemoveInfoBar(IVsUIElement) RemoveInfoBar(IVsUIElement)

Remove an InfoBar UI element from this InfoBar host.

Explicit Interface Implementations

IVsInfoBarHostPrivate.GetInfoBar(Int32) IVsInfoBarHostPrivate.GetInfoBar(Int32) IVsInfoBarHostPrivate.GetInfoBar(Int32) IVsInfoBarHostPrivate.GetInfoBar(Int32)
IVsInfoBarHostPrivate.InfoBarCount IVsInfoBarHostPrivate.InfoBarCount IVsInfoBarHostPrivate.InfoBarCount IVsInfoBarHostPrivate.InfoBarCount
IVsInfoBarUIEvents.OnActionItemClicked(IVsInfoBarUIElement, IVsInfoBarActionItem) IVsInfoBarUIEvents.OnActionItemClicked(IVsInfoBarUIElement, IVsInfoBarActionItem) IVsInfoBarUIEvents.OnActionItemClicked(IVsInfoBarUIElement, IVsInfoBarActionItem) IVsInfoBarUIEvents.OnActionItemClicked(IVsInfoBarUIElement, IVsInfoBarActionItem)

Raised when the InfoBar’s action item is clicked.

IVsInfoBarUIEvents.OnClosed(IVsInfoBarUIElement) IVsInfoBarUIEvents.OnClosed(IVsInfoBarUIElement) IVsInfoBarUIEvents.OnClosed(IVsInfoBarUIElement) IVsInfoBarUIEvents.OnClosed(IVsInfoBarUIElement)

Raised when the InfoBar is closed.

Applies to