In This Article

TintColorExtension Class

Provides a markup extension for tinting one System.Windows.Media.Color towards another System.Windows.Media.Color.

public class TintColorExtension : MarkupExtension
Inheritance:
System.Object MarkupExtension Object

Constructors

TintColorExtension()

Creates an instance of the TintColorExtension class.

public TintColorExtension()

TintColorExtension(Color, Color)

Creates an instance of the TintColorExtension class.

public TintColorExtension(Color baseColor, Color tintColor)
Parameter Type Description
baseColor System.Windows.Media.Color

The base System.Windows.Media.Color.

tintColor System.Windows.Media.Color

The tint System.Windows.Media.Color.

Properties

BaseColor

Gets or sets the base System.Windows.Media.Color.

[ConstructorArgument("baseColor")]
public Color BaseColor { get; set; }

Property Value

System.Windows.Media.Color:

The base System.Windows.Media.Color.

TintColor

Gets or sets the tint System.Windows.Media.Color.

[ConstructorArgument("tintColor")]
public Color TintColor { get; set; }

Property Value

System.Windows.Media.Color:

The tint System.Windows.Media.Color.

Methods

ProvideValue(IServiceProvider)

Returns the interpolated color value.

public override object ProvideValue(IServiceProvider serviceProvider)
Parameter Type Description
serviceProvider System.IServiceProvider

An object that can provide services for the markup extension.

Returns

System.Object:

The object value to set on the property where the extension is applied.

Inherited Members

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()