How do we get our Custom Controls to inherit the Visual Studio 2013 Theme styles?

Topics: Developer Forum
Apr 15, 2014 at 12:18 AM
Our custom controls aren't inheriting the Visual Studio theme colors so the custom controls stand out in an ugly way (white). Anyone know how to fix that?
May 28, 2014 at 1:06 AM
Edited May 28, 2014 at 1:07 AM
I partly figured it out:

add a reference to Microsoft.TeamFoundation.Controls, PresentationCore and WindowsBase

add the following to the controls:

BackColor = TeamFoundationColors.Instance.WorkItemFormBackground.ToWinForms(),
ForeColor = TeamFoundationColors.Instance.WorkItemFormForeground.ToWinForms(),

I still encounter with the multivalue control a border which is now in the foreColor, but I would prefer it to be gone.