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
- elementFromFactory
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIElement
Object created by a UI factory.
- model
Type: System.Object
Data 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.