Back to Devexpress

ArcScale.Needles Property

wpf-devexpress-dot-xpf-dot-gauges-dot-arcscale.md

latest2.5 KB
Original Source

ArcScale.Needles Property

Provides access to a collection of needles contained in the current Circular Scale.

Namespace : DevExpress.Xpf.Gauges

Assembly : DevExpress.Xpf.Gauges.v25.2.dll

NuGet Package : DevExpress.Wpf.Gauges

Declaration

csharp
public ArcScaleNeedleCollection Needles { get; }
vb
Public ReadOnly Property Needles As ArcScaleNeedleCollection

Property Value

TypeDescription
ArcScaleNeedleCollection

An ArcScaleNeedleCollection object that contains scale needles.

|

Remarks

Use the Needles property to add or remove needles to the current scale, as well as to customize different settings of individual scale needles. A single needle is an instance of the ArcScaleNeedle class and can be accessed via the GaugeDependencyObjectCollectionBase<T>.Item property of an ArcScaleNeedleCollection object.

Example

The following example demonstrates how to customize the needle on a circular scale.

View Example

xaml
<dxga:ArcScale.Needles>
    <dxga:ArcScaleNeedle x:Name="needle" IsInteractive="True">
        <dxga:ArcScaleNeedle.Options>
            <dxga:ArcScaleNeedleOptions EndOffset="10" />
        </dxga:ArcScaleNeedle.Options>
        <dxga:ArcScaleNeedle.Presentation>
            <dxga:CustomArcScaleNeedlePresentation
                NeedleTemplate="{StaticResource OscilloscopeNeedleTemplate}" />
        </dxga:ArcScaleNeedle.Presentation>
    </dxga:ArcScaleNeedle>
</dxga:ArcScale.Needles>

See Also

ArcScale Class

ArcScale Members

DevExpress.Xpf.Gauges Namespace