Compartilhar via


UIFactoryHelper.ResolveWpfViewAndSetDataContext Method

Microsoft internal use only.

Given a UI element created by a UI factory, resolves it to a Windows Presentation Format (WPF) FrameworkElement and binds it to the given model.

Namespace:  Microsoft.Internal.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaração
Public Shared Function ResolveWpfViewAndSetDataContext ( _
    elementFromFactory As IVsUIElement, _
    model As Object _
) As FrameworkElement
public static FrameworkElement ResolveWpfViewAndSetDataContext(
    IVsUIElement elementFromFactory,
    Object model
)

Parameters

Return Value

Type: System.Windows.FrameworkElement
A WPF [FrameworkElement] that is bound to the given model.

.NET Framework Security

See Also

Reference

UIFactoryHelper Class

Microsoft.Internal.VisualStudio.PlatformUI Namespace