Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'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
elementFromFactory
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIElementObject created by a UI factory.
model
Type: System.ObjectData model of the new view.
Return Value
Type: System.Windows.FrameworkElement
A WPF [FrameworkElement] that is bound to the given model.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.