Class GaugeImage
Represents an image visual element that can be placed in the Gauge.
Inherited Members
Namespace: Syncfusion.Windows.Gauge
Assembly: Syncfusion.Gauge.WPF.dll
Syntax
public class GaugeImage : LocalizableGaugeElement
Remarks
To specify the source of the image use the ImageSource property.0The image can be rotated to a specific angle using the Syncfusion.Windows.Gauge.GaugeImage.Angle property.
Constructors
GaugeImage()
Declaration
public GaugeImage()
Fields
ImageHeightProperty
Identifies the ImageHeight dependency property.
Declaration
public static readonly DependencyProperty ImageHeightProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ImageSourceProperty
Identifies the System.Windows.Controls.Image dependency property.
Declaration
public static readonly DependencyProperty ImageSourceProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ImageWidthProperty
Identifies the ImageWidth dependency property.
Declaration
public static readonly DependencyProperty ImageWidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ResizeModeProperty
Identifies the ResizeMode dependency property.
Declaration
public static readonly DependencyProperty ResizeModeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
ImageHeight
Gets or sets the height of the element. This is a dependency property.
Declaration
public double ImageHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 0. |
See Also
ImageSource
Gets or sets the image source of the element. This is a dependency property.
Declaration
public ImageSource ImageSource { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.ImageSource | Type: ImageSource |
ImageWidth
Gets or sets the width of the element. This is a dependency property.
Declaration
public double ImageWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 0. |
See Also
ResizeMode
Gets or sets the resize mode of the image. This is a dependency property.
Declaration
public GaugeImageResizeMode ResizeMode { get; set; }
Property Value
Type | Description |
---|---|
GaugeImageResizeMode | Type: GaugeImageResizeMode Default value is GaugeImageResizeMode.None. |
Methods
MeasureOverride(Size)
Measures the size in layout required for child elements and determines a size for the element.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize | The available size that this element can give to child elements. |
Returns
Type | Description |
---|---|
System.Windows.Size | The size that this element determines it needs during layout. |
OnAngleChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises Syncfusion.Windows.Gauge.GaugeImage.AngleChanged event.
Declaration
protected virtual void OnAngleChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnImageHeightChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises ImageHeightChanged event.
Declaration
protected virtual void OnImageHeightChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnImageSourceChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises ImageSourceChanged event.
Declaration
protected virtual void OnImageSourceChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnImageWidthChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises ImageWidthChanged event.
Declaration
protected virtual void OnImageWidthChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized property is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The System.EventArgs that contains the event data. |
OnRender(DrawingContext)
Participates in rendering operations that are directed by the layout system.
Declaration
protected override void OnRender(DrawingContext drawingContext)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | drawingContext | The drawing instructions for a specific element. |
OnResizeModeChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises ResizeModeChanged event.
Declaration
protected virtual void OnResizeModeChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
Events
ImageHeightChanged
Event that is raised when ImageHeight property is changed.
Declaration
public event PropertyChangedCallback ImageHeightChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ImageSourceChanged
Event that is raised when ImageSource property is changed.
Declaration
public event PropertyChangedCallback ImageSourceChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ImageWidthChanged
Event that is raised when ImageWidth property is changed.
Declaration
public event PropertyChangedCallback ImageWidthChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ResizeModeChanged
Event that is raised when ResizeMode property is changed.
Declaration
public event PropertyChangedCallback ResizeModeChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |