In This Article

ImageTextInfo Class

Represents an object that has properties for setting large and small image sources, along with a text label.

public class ImageTextInfo : DependencyObject
Inheritance:
object object

Remarks

This class is ideal for using to databind images, text or other information to the Header of a HeaderedContentControl.

Constructors

ImageTextInfo()

Initializes an instance of the class.

public ImageTextInfo()

Properties

ImageSourceLarge

Gets or sets a large ImageSource.

public ImageSource ImageSourceLarge { get; set; }

Property Value

ImageSource:

A large ImageSource.

ImageSourceSmall

Gets or sets a small ImageSource.

public ImageSource ImageSourceSmall { get; set; }

Property Value

ImageSource:

A small ImageSource.

Tag

Gets or sets an arbitrary object value that can be used to store custom information about this object.

public object Tag { get; set; }

Property Value

object:

The intended value. This property has no default value.

Text

Gets or sets a text label.

[Localizability(LocalizationCategory.Title)]
public string Text { get; set; }

Property Value

string:

A text label.

Methods

ToString()

Returns a String that represents the current Object.

public override string ToString()

Returns

string:

A String that represents the current Object.

Fields

ImageSourceLargeProperty

Identifies the ImageSourceLarge dependency property. This field is read-only.

public static readonly DependencyProperty ImageSourceLargeProperty

ImageSourceSmallProperty

Identifies the ImageSourceSmall dependency property. This field is read-only.

public static readonly DependencyProperty ImageSourceSmallProperty

TagProperty

Identifies the Tag dependency property. This field is read-only.

public static readonly DependencyProperty TagProperty

TextProperty

Identifies the Text dependency property. This field is read-only.

public static readonly DependencyProperty TextProperty