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

A large ImageSource.

public ImageSource? ImageSourceLarge { get; set; }

Property Value

ImageSource

ImageSourceSmall

A small ImageSource.

public ImageSource? ImageSourceSmall { get; set; }

Property Value

ImageSource

Tag

An arbitrary object value that can be used to store custom information about this object.

public object? Tag { get; set; }

Property Value

object

Text

A text label.

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

Property Value

string

Methods

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Fields

ImageSourceLargeProperty

Defines the ImageSourceLarge property.

public static readonly DependencyProperty ImageSourceLargeProperty

ImageSourceSmallProperty

Defines the ImageSourceSmall property.

public static readonly DependencyProperty ImageSourceSmallProperty

TagProperty

Defines the Tag property.

public static readonly DependencyProperty TagProperty

TextProperty

Defines the Text property.

public static readonly DependencyProperty TextProperty

Extension Methods