Partager via


IModelBrowserHost Interface

This is the contract class for the host that want to host the IModelBrowser WPF user control.

Namespace:  Microsoft.VisualStudio.Modeling.Integration.Picker
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll)

Syntax

'Declaration
Public Interface IModelBrowserHost
public interface IModelBrowserHost
public interface class IModelBrowserHost
type IModelBrowserHost =  interface end
public interface IModelBrowserHost

The IModelBrowserHost type exposes the following members.

Properties

  Name Description
Public property Metadata Collections of limitations, hints and etc to by used by the browsers
Public property ModelBrowser Gets the IModelBrowser
Public property ModelBus Gets the IModelBus
Public property Reference Gets the ModelBusReference

Top

Methods

  Name Description
Public method CancelAndClose Closes the host without validating (cancel action)
Public method Clear Clears the references (set's it to null)
Public method CloseIfValid Closes the host if it validates correctly (ok action)
Public method ResizeToMeasure Requests the host to re-measure the control in order to potentially grow/shrink based on the new size requirements

Top

See Also

Reference

Microsoft.VisualStudio.Modeling.Integration.Picker Namespace