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)
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::FrameworkElementA WPF [FrameworkElement] that is bound to the given model.
- 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.
Show: