IconFrameSelector Class
Represents a markup extension that allows the selection of a specific frame from an icon.
public class IconFrameSelector : MarkupExtension
- Inheritance:
- System.Object MarkupExtension Object
Constructors
IconFrameSelector()
Initializes a new instance of the IconFrameSelector class.
public IconFrameSelector()
IconFrameSelector(ImageSource)
Initializes a new instance of the IconFrameSelector class.
public IconFrameSelector(ImageSource imageSource)
Parameter | Type | Description |
---|---|---|
imageSource | System.Windows.Media.ImageSource | The image source to select the frame. |
Properties
DesiredHeight
Gets or sets the desired image frame height.
public double DesiredHeight { get; set; }
Property Value
- System.Double:
The desired image frame height.
DesiredWidth
Gets or sets the desired image frame width.
public double DesiredWidth { get; set; }
Property Value
- System.Double:
The desired image frame width.
ImageSource
Gets or sets the source of an image that contains several frames.
public ImageSource ImageSource { get; set; }
Property Value
- System.Windows.Media.ImageSource:
The source of an image that contains several frames.
Methods
ProvideValue(IServiceProvider)
When implemented in a derived class, returns an object that is set as the value of the target property for this markup extension.
public override object ProvideValue(IServiceProvider serviceProvider)
Parameter | Type | Description |
---|---|---|
serviceProvider | System.IServiceProvider | 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()