Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ArcScale.Needles Property

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

Namespace: DevExpress.Xpf.Gauges

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

NuGet Package: DevExpress.Wpf.Gauges

#Declaration

public ArcScaleNeedleCollection Needles { get; }

#Property Value

Type Description
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

<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>

The following code snippets (auto-collected from DevExpress Examples) contain references to the Needles property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also