XamDateTimeRangeSlider : i have two thumbs in slider and i want the area shaded in between two thumbs how can i do it?
Hi Komal,
Thank you for posting to Infragistics Community!
Please, note that since your question is regarding the XamDateTimeRangeSlider, which is part of the Ultimate UI for WPF product, we recommend creating threads in its dedicated WPF forum here. This is to ensure better traceability and categorization of the forum discussions. Thank you for understanding.
To address your question, what I can say is that the track area between two thumbs in the XamDateTimeRangeSlider is shaded by default. In this topic of our documentation about the XamSlider thumbs, a picture shows the DateTime range slider appearance by default.
What I observe is, that the track before the first thumb is also colored. I am under the impression that your requirement is to have only the track between the two thumbs in your slider colored, is that correct?
Conveniently, each XamSliderDateTimeThumb exposes the TrackFillBrush property, which allows to set this color fore the track before it. For example, with the below code:
<ig:XamDateTimeRangeSlider.Thumbs> <ig:XamSliderDateTimeThumb Value="4/1/2023" TrackFillBrush="Transparent"/> <ig:XamSliderDateTimeThumb Value="8/1/2023" TrackFillBrush="DeepPink" /> </ig:XamDateTimeRangeSlider.Thumbs>
The following look can be achieved:
For your convenience, below I am attaching a minimal sample demonstrating this. Please, check it out and let me know if you require any further assistance on the matter.
Best regards, Bozhidara Pachilova Associate Software Developer
1817.XDTRSSample.zip