The short answer is that there is no direct feature equivalent to the RangeFills
property in Windows Forms, but you can mimic the effect with careful use of some primitive types:
<ni:GaugeDouble>
<ni:GaugeDouble.TrackDecorations>
<niPrimitives:RegionFigure ZIndex="-10"
RelativeWidth="0.4"
RelativeHeight="0.08"
RelativeVerticalPosition="1.022"
RelativeVerticalAlignment="Far"
Fill="LimeGreen" />
</ni:GaugeDouble.TrackDecorations>
</ni:GaugeDouble>
The longer answer is that, for the first version of the WPF controls, we intentionally left many of the underlying primitive types with minimal documentation, as we may change them in the future. In the current implementation, we use RegionPanel
and attached properties like RelativeHorizontalAlignment
to perform the layout for many of our controls. Although these exact members may be removed in a later release, we do plan to provide equivalent functionality and stabilize the primitive API over time.
Besides that caveat, I hope you find this useful.
~ Paul H