Hi Louis,
Query 1: RadiusFactor deals with rim. ScaleStart and ScaleEnd deal with the scale\ticks\marks that follow along the rim?
We would like to inform that RadiuFactor and Scale offset properties deals with same functionality to customize the position and size of the scale rim (scale line). You can customize the rim either in below two ways.
1. RadiusFactor with RimThickness property
- This way is used to define the size of rim in logical pixels from it start position. RadiusFactor property is used to define the start position of the scale rim in factor value (between 0 to 1). Rim position is determined by multiplying this factor value to the radius size of gauge circle (example: gauge radius (half of diameter) size is 100 and RadiusFactor is 0.6, then rim will be positioned at 60 pixel height from gauge center). RimThickness property is used to define the rim size in logical pixels.
2. ScaleStartOffset and ScaleEndOffset
- This way is used to define the scale rim position and size in factor value (between 0 to 1) for responsive size (size will be responsive in all the layout). Rim position and size is determined by multiplying this factor value to the radius size of gauge circle.
Refer this link for more information:
Query 2: Scale 2, starts with a radius factor of 0.6. This 0.6 positions the rim at a certain height (certain point (Pixel?)) on the page?
As informed above, RadiusFactor is used to define the rim start position from gauge center (example: gauge radius (half of diameter) size is 100 and RadiusFactor is 0.6, then rim will be positioned at 60 pixel height from gauge center).
Query 3: Scale2 does not use ScaleStart\End because it is using the defaults for the width of the rim?
No. In scale 2, RadiusFactor property is defined and rim size is taken from the default value of RimThinkness. So, scale start and end offset properties is no needed to define the rim size.
Note: scale 1 is outer rim and scale 2 is inner rim in last updated sample.
Query 4: Scale1, ScaleStartOffset="0.98". Is this a position in relation to the top of the page, or from the second\inner rim?
Scale 1 is outer scale and ScaleStartOffset and ScaleStartOffset properties is used to define the size and position of outer scale rim. Similarly, you can position the labels and ticks of scale using LabelOffset and tick setting offset properties.
Query 5: Why use RadiusFactor on one scale and not the other, and the same question for ScaleStart\End?
RadiusFactor and the ScaleStart/EndOffset properties only used to define the position and size of scale rim not other scale elements like scale, ticks.
Query 6: Does it matter the order of the scales, the inner ones appears lower in the XAML code?
No, the order of the scales not based on the scale added in XAML code. It based on scale elements position.
Query 7: What is StartAngle, why starts at 270?
StartAngle property is used to specify the start angle direction of scale. The scale range begins from start angle to end angle. The picture below illustrates the direction of angle from 0 degree to 360 degree. If you set StartAngle is 270, scale range will start from top and end to specified sweep angle direction value.
Please let us know if you have any concern on this.
Regards,
Ramya S