UIFactoryHelper.ResolveWpfViewAndSetDataContext Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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
Assemblies:   Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Shared Function ResolveWpfViewAndSetDataContext ( _
    elementFromFactory As IVsUIElement, _
    model As Object _
) As FrameworkElement
public static FrameworkElement ResolveWpfViewAndSetDataContext(
    IVsUIElement elementFromFactory,
    Object model
)
public:
static FrameworkElement^ ResolveWpfViewAndSetDataContext(
    IVsUIElement^ elementFromFactory, 
    Object^ model
)
static member ResolveWpfViewAndSetDataContext : 
        elementFromFactory:IVsUIElement * 
        model:Object -> FrameworkElement
public static function ResolveWpfViewAndSetDataContext(
    elementFromFactory : IVsUIElement, 
    model : Object
) : FrameworkElement

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