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:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject Object
Remarks
This class is ideal for using to databind images, text or other information to the Header
of a HeaderedContentControl
.
Constructors
ImageTextInfo()
public ImageTextInfo()
Properties
ImageSourceLarge
Gets or sets a large System.Windows.Media.ImageSource.
public ImageSource ImageSourceLarge { get; set; }
Property Value
- System.Windows.Media.ImageSource:
A large System.Windows.Media.ImageSource.
ImageSourceSmall
Gets or sets a small System.Windows.Media.ImageSource.
public ImageSource ImageSourceSmall { get; set; }
Property Value
- System.Windows.Media.ImageSource:
A small System.Windows.Media.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
- System.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
- System.String:
A text label.
Methods
ToString()
Returns a String
that represents the current Object
.
public override string ToString()
Returns
- System.String:
A
String
that represents the currentObject
.
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
Inherited Members
- 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()