I'm working on a project that uses the XamNumericRangeSlider class (xaml originally taken from an example provided with the SDK, then heavily modified) and one problem I'm having is with the thumbs that I'm using inside of the slider. Because of some additional information needed, I had to sub-class the thumb, using the XamSliderNumericThumb as the base class. When I put this into the thumbs collection in XAML, I get the following error in the XAML file on each thumb added:
A value of type 'LimitSliderNumericThumb' cannot be added to a collection or dictionary of type 'ObservableCollection`1'.
Still dealing with this problem, the error indicators in VS are really getting in the way and have hidden real problems/errors. If someone has any idea about what the problem is here, it would be greatly appreciated.
Hello,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Thank you for your post. I have been looking into it, but since I cannot be completely sure what do you set in your custom class that derives XamSliderNumericThumb, could you please send me an isolated sample project, where this is reproduced, so I can investigate it further for you.
Looking forward for your reply.