Metodo WindowHelper.GetFrameworkElementFromUIElement
Crea un oggetto FrameworkElement dall'elemento dell'interfaccia utente specificato.
Spazio dei nomi: Microsoft.Internal.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Sintassi
'Dichiarazione
Public Shared Function GetFrameworkElementFromUIElement ( _
element As IVsUIElement _
) As FrameworkElement
public static FrameworkElement GetFrameworkElementFromUIElement(
IVsUIElement element
)
Parametri
- element
Tipo: Microsoft.VisualStudio.Shell.Interop.IVsUIElement
L'elemento dell'interfaccia utente da cui ottenere un oggetto FrameworkElement.
Valore restituito
Tipo: System.Windows.FrameworkElement
L'elemento framework dell'oggetto dell'interfaccia utente.
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.