Is it possible to databind RadialScale.Ranges?

4 posts, 1 answers
  1. Wenrong
    Wenrong avatar
    36 posts
    Member since:
    May 2012

    Posted 29 Jun 2012 Link to this post

    Is it possible to databind RadialScale.Ranges so that the set of ranges can be easily manipulated from the ViewModel?
  2. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 03 Jul 2012 Link to this post

    Hello Wenrong,

    I have attached a sample solution which uses a databinding for the RadialScale.Ranges property. I hope it helps.

    Greetings,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Wenrong
    Wenrong avatar
    36 posts
    Member since:
    May 2012

    Posted 09 Jul 2012 Link to this post

    Thanks for your answer, but is there a way that doesn't require the ViewModel to know about the view? Doesn't really want to reference telerik dll in my view model assembly as it kind of breaks the MVVM model...
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 11 Jul 2012 Link to this post

    Hi Wenrong,

    The gauge control does not allow to bind RadialScale.Ranges property other way without using Telerik assemblies. The GaugeRange is a data object (not a visual). And the type of RadialScale.Ranges property is the GaugeRangeCollection which can contain the instances of GaugeRange only.

    Regards,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top