gauge angle

4 posts, 0 answers
  1. kity
    kity avatar
    71 posts
    Member since:
    Mar 2012

    Posted 31 Jul 2014 Link to this post

    How to get compass angle? Is there any function in Telerik library to call and return value?
    See image for more info.

    Must be OK with negative value too.
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 01 Aug 2014 Link to this post

    Hi kity,

    The "Compass" is just an example of the radial gauge usage. It is not a kind of ready-to-use compass control. It is on your own to handle value of the indicator as compass angle.


    Regards,
    Andrey Murzov
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. kity
    kity avatar
    71 posts
    Member since:
    Mar 2012

    Posted 01 Aug 2014 in reply to Andrey Link to this post

    // show real degree depending Min/Max Angel
    double ActualValue;

    why you just not add a new property for example actual value to show real angle?
    You have all data and this is not any depending is this is compass or other custom buisness logic control.

    <telerik:RadialScale StartAngle="270"
                                        SweepAngle="360"    
                                        Min="0" 
                                        Max="360"    />

    Or may be this functionality is done? How to get actual angle from control?
    For my compass example if Value is equal to 450, angel is 90 degree.

    Or you can simply show fuction that set needle to 90 degree.

  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 01 Aug 2014 Link to this post

    Hello kity,

    We implemented our design so that the control uses values instead of degrees. In your particular case you can create a custom converter that will convert the degrees you set to actual value that will be valid for our control. As I already stated in my previous post the compass demo is just an example how this control can be used in a different scenario.

    Regards,
    Andrey Murzov
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top