共用方式為


WpfUtil.GetImageSourceFromResource 方法

命名空間:  Microsoft.TeamFoundation.Controls.WPF
組件:  Microsoft.TeamFoundation.Controls (在 Microsoft.TeamFoundation.Controls.dll 中)

語法

'宣告
Public Shared Function GetImageSourceFromResource ( _
    c As Control, _
    resourceName As String _
) As ImageSource
public static ImageSource GetImageSourceFromResource(
    Control c,
    string resourceName
)

參數

傳回值

型別:System.Windows.Media.ImageSource

.NET Framework 安全性

請參閱

參考

WpfUtil 類別

Microsoft.TeamFoundation.Controls.WPF 命名空間