Where to add reference for System.Windows.Media.GradientStopCollection

8.3k Views Asked by At

I have gone to the "Reference" in Solution Explorer and tried to add it from "Framework" under "Assemblies" in the Reference Manager. Is there something that I'm missing in term of having a service pack installed? The MSDN page (http://msdn.microsoft.com/en-us/library/system.windows.media.gradientstopcollection.aspx)

In VS 2010

please advise... Thanks!

1

There are 1 best solutions below

3
SLaks On

See the documentation:

Namespace: System.Windows.Media
Assembly: PresentationCore (in PresentationCore.dll)

You need to add a reference to PresentationCore, and add using System.Windows.Media to your file.

You may already have both.