Slider Ticks Binding doesn't work

2 posts, 0 answers
  1. Nick
    Nick avatar
    19 posts
    Member since:
    Aug 2010

    Posted 26 Aug 2010 Link to this post


    List of DateTimes, using IValueConverter in order to get doubles for the tick values, and a different IValueConverter for the TickTemplate.

    For some reason, I cannot get it to work...

    There is also a problem that when I set the DataContext after InitializeComponent(), I get a stackoverflowexception.

    Even when not using the binding and setting the Ticks myself, the Ticks are not updated:

    Dictionary<double, DateTime> DateRange = DateTime.Today.GetDatesRange(DateTime.Today.AddYears(2)).CreateOADateDictionary();
    SliderSelectPeriod.Ticks = new Helpers.DateRangeToDoubleCollectionConverter().Convert(DateRange, null, null, null) as DoubleCollection;

    Found the problem; the DateRange, Min and Max ticks property in the INotifyChanged Model wasn't marked as Public, causing the ticks and texts not to show up :-/ Guess you should go to bed early in stead of continuing to progg past 3 AM :P


  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 27 Aug 2010 Link to this post

    Hi Nick,

    Yes indeed in Silverlight you cannot data bind non-public properties whilst in WPF you can if your application is working in full trust.

    Kind regards,
    Tina Stancheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top