Share via


VsColors.GetThemedWPFColor(IVsUIShell5, ThemeResourceKey) Method

Definition

Gets a System.Windows.Media.Color value from the current theme for the given color key.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Media::Color GetThemedWPFColor(Microsoft::VisualStudio::Shell::Interop::IVsUIShell5 ^ vsUIShell, Microsoft::VisualStudio::Shell::ThemeResourceKey ^ themeResourceKey);
public static System.Windows.Media.Color GetThemedWPFColor (this Microsoft.VisualStudio.Shell.Interop.IVsUIShell5 vsUIShell, Microsoft.VisualStudio.Shell.ThemeResourceKey themeResourceKey);
static member GetThemedWPFColor : Microsoft.VisualStudio.Shell.Interop.IVsUIShell5 * Microsoft.VisualStudio.Shell.ThemeResourceKey -> System.Windows.Media.Color
<Extension()>
Public Function GetThemedWPFColor (vsUIShell As IVsUIShell5, themeResourceKey As ThemeResourceKey) As Color

Parameters

vsUIShell
IVsUIShell5

The IVsUIShell5 service, used to get the color's value.

themeResourceKey
ThemeResourceKey

The key to find the color for.

Returns

The current theme's value of the named color.

Applies to