How to build and create dynamic indicator in VB code instead of XML

4 posts, 0 answers
  1. Anoop
    Anoop avatar
    76 posts
    Member since:
    Sep 2006

    Posted 13 Apr 2011 Link to this post

    How to build and create dynamic indicator in VB code instead of XML

    So the indicator should be change according to my input value

     

    Also I wanna change the range and the scale in VB code to make it more flexible.
    in radical and simi gauge

     

    Please let me know how to do that ASAP

     

    Thanks in advance

  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 15 Apr 2011 Link to this post

    Hello Anoop,

    I have attached a sample VB solution which creates the gauge from a code behind.
    I hope it helps.

    Regards,
    Andrey Murzov
    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Anoop
    Anoop avatar
    76 posts
    Member since:
    Sep 2006

    Posted 17 Apr 2011 Link to this post

    Thanks a lot for your replay,

    But I don’t know why I got this much error once I opened the example you sent
    Am using Visual Studio 2008 and this controls RadControls for WPF Q3 2010 SP1
    am usually getting errors with any examples

    Thanks in advance

    Error 1 'Sub Main' was not found in 'GaugeFromVB'. GaugeFromVB
    Error 2 Name 'InitializeComponent' is not declared. 
    Error 3 Name 'LayoutRoot' is not declared. 
    Error 4 'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel'.
    Error 5 'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel'.
    Error 6 'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel'.
    Error 7 'EditorBrowsableAttribute' is ambiguous in the namespace
    Error 8 'EditorBrowsableAttribute' is ambiguous in the namespace
    Error 9 'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel'.
    Error 10 'GeneratedCodeAttribute' is ambiguous in the namespace 'System.CodeDom.Compiler'.
    Error 11 'EditorBrowsableAttribute' is ambiguous in the namespace
    Error 12 'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel'. 
    Error 13 'GeneratedCodeAttribute' is ambiguous in the namespace 'System.CodeDom.Compiler'. 
    Error 14 'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel'.
    Error 15 'ApplicationSettingsBase' is ambiguous in the namespace 'System.Configuration'.
    Error 16 'ApplicationSettingsBase' is ambiguous in the namespace 'System.Configuration'. 
    Error 17 'HelpKeywordAttribute' is ambiguous in the namespace 'System.ComponentModel.Design'.
    Warning 18 The referenced component 'System.Xaml' could not be found.  
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 20 Apr 2011 Link to this post

    Hello Anoop,

    The solution I've sent to you has been created using VS2010 and it is targeted to the .NET Framework 4.0. It can't be opened and compiled using VS2008, because it supports .NET Framework 2.0-3.5 only. You can simple create new project in VS2008 and add .xaml and .vb files from my solution to the new one.

    By the way, it looks like you are using RadControls bundle compiled and packaged for .NET Framework 4.0. Since you are using VS2008 you should use bundle compiled and packaged for .NET Framwork 3.5. This bundle should be available from your account.

    Greetings,
    Andrey Murzov
    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