Represents a circular gauge control.
- Inheritance:
-
object
Visual
UIElement
Framework
Element GaugeElement GaugeBase object
- Derived:
-
Circular
Gauge FlipSwitch Led
- Implements:
-
ILogical
Parent IVisualParent
Remarks
For detailed documentation on this control's features and how to use them, please see the Gauge documentation topics.
Constructors
CircularGaugeBase()
Initializes a new instance of the Circular
Properties
BackgroundGeometry
Gets or sets the custom geometry used for the frame background. This is a dependency property.
Property Value
- Geometry:
A custom geometry for the frame background. The default value is
null
.
Remarks
This property is only used when BackgroundCircularBackgroundType.CustomBackgroundGeometry
.
BackgroundImageSource
Gets or sets the source of a custom image used for the frame background. This is a dependency property.
Property Value
- Image
Source : The image source for the frame background. The default value is
null
.
Remarks
This property is only used when BackgroundCircularBackgroundType.CustomBackgroundImage
.
BackgroundRadiusRatio
Gets or sets the radius of the frame background as a ratio of the Radius property. This is a dependency property.
Property Value
BackgroundType
Gets or sets the type of frame background to be rendered. This is a dependency property.
Property Value
- Circular
Background :Type The type of frame background to be rendered. The default value is
CircularBackgroundType.CircularOrb
.
FrameType
Gets or sets the type of frame rendered. This is a dependency property.
Property Value
- Circular
Frame :Type The type of frame rendered. The default value is Circular
Orb .
GlassType
Gets or sets the type of glass effect rendered, if any. This is a dependency property.
Property Value
- Circular
Glass :Type The type of glass rendered, if any. The default value is
CircularGlassType.None
.
LogicalChildren
Gets an enumerator for logical child elements of this element.
Property Value
Radius
Gets or sets the radius of the gauge. This is a dependency property.
Property Value
- Unit:
The radius. The default value is
100
pixels.
RimGeometry
Gets or sets the custom geometry used for the frame rim. This is a dependency property.
Property Value
- Geometry:
A custom geometry for the frame rim. The default value is
null
.
Remarks
This property is only used when RimCircularRimType.CustomRimGeometry
.
RimImageSource
Gets or sets the source of a custom image used for the frame rim. This is a dependency property.
Property Value
- Image
Source : The image source for the frame rim. The default value is
null
.
Remarks
This property is only used when RimCircularRimType.CustomRimImage
.
RimType
Gets or sets the type of frame rim to be rendered. This is a dependency property.
Property Value
- Circular
Rim :Type The type of frame rim to be rendered. The default value is
CircularRimType.CircularThinRim
.
Methods
ArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a
Framework
Parameter | Type | Description |
---|---|---|
finalSize | Size | The final area within the parent that this element should use to arrange itself and its children. |
Returns
- Size:
The actual size used.
GetRadius(DependencyObject)
Gets the value of the Radius
Parameter | Type | Description |
---|---|---|
obj | DependencyObject | The object to which the attached property is retrieved. |
Returns
- Unit:
The radius.
MeasureOverride(Size)
When overridden in a derived class, measures the size in layout required for child elements and determines a size for
the Framework
Parameter | Type | Description |
---|---|---|
availableSize | Size | The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available. |
Returns
- Size:
The size that this element determines it needs during layout, based on its calculations of child element sizes.
OnRender(DrawingContext)
When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.
Parameter | Type | Description |
---|---|---|
drawingContext | Drawing |
The drawing instructions for a specific element. This context is provided to the layout system. |
RenderFrameBackground(DrawingContext)
Renders the background of the frame based on the actual width and height, and the Frame
Parameter | Type | Description |
---|---|---|
drawingContext | Drawing |
The drawing context. |
RenderFrameRim(DrawingContext)
Renders the rim of the frame based on the actual width and height, and the Frame
Parameter | Type | Description |
---|---|---|
drawingContext | Drawing |
The drawing context. |
SetRadius(DependencyObject, Unit)
Sets the value of the Radius
Parameter | Type | Description |
---|---|---|
obj | DependencyObject | The object to which the attached property is written. |
value | Unit | The radius. |
UpdateUnitBases()
Updates UnitBaseX
and UnitBaseY
.
Fields
BackgroundGeometryProperty
Identifies the Background
BackgroundImageSourceProperty
Identifies the Background
BackgroundRadiusRatioProperty
Identifies the Background
BackgroundTypeProperty
Identifies the Background
FrameTypeProperty
Identifies the Frame
GlassTypeProperty
Identifies the Glass
RadiusProperty
Identifies the Radius dependency property. This field is read-only.
RimGeometryProperty
Identifies the Rim
RimImageSourceProperty
Identifies the Rim
RimTypeProperty
Identifies the Rim
Inherited Members
-
Gauge
Base. Background Property -
Gauge
Base. Is Background Effect Enabled Property -
Gauge
Base. Is Rim Effect Enabled Property -
Gauge
Base. Origin Property -
Gauge
Base. Rim Brush Property -
Gauge
Base. Unit Base XProperty -
Gauge
Base. Unit Base YProperty -
Gauge
Base. XProperty -
Gauge
Base. YProperty -
Gauge
Base. Get Location(UIElement, Size) -
Gauge
Base. Get Origin(Dependency Object) -
Gauge
Base. Get X(Dependency Object) -
Gauge
Base. Get Y(Dependency Object) -
Gauge
Base. On Create Automation Peer() -
Gauge
Base. On Render Size Changed(Size Changed Info) -
Gauge
Base. Set Origin(Dependency Object, Coordinate Origin) -
Gauge
Base. Set X(Dependency Object, Unit) -
Gauge
Base. Set Y(Dependency Object, Unit) -
Gauge
Base. To Bitmap(double, double) -
Gauge
Base. Background -
Gauge
Base. Is Background Effect Enabled -
Gauge
Base. Is Rim Effect Enabled -
Gauge
Base. Items -
Gauge
Base. Origin -
Gauge
Base. Rim Brush -
Gauge
Base. Unit Base X -
Gauge
Base. Unit Base Y -
Gauge
Base. X -
Gauge
Base. Y -
Gauge
Element. ZIndex Property -
Gauge
Element. Get Visual Child(int) -
Gauge
Element. Get ZIndex(UIElement) -
Gauge
Element. Set ZIndex(UIElement, int) -
Gauge
Element. Visual Children -
Gauge
Element. Visual Children Count -
Gauge
Element. ZIndex