This is a migrated thread and some comments may be shown as answers.

Using ValueSource

1 Answer 136 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
developer
Top achievements
Rank 2
developer asked on 24 Jul 2012, 03:54 PM
Let me edit this to be more clear.  I am trying to dynamically change the values of the needle, thus making it Animated and have it move according to the live data being stored.  I have live data that is being thrown in a Records (ObservableCollection<QRecords<double>>) which (QRecords) has the properties "Value" and "TimeStamp" in it.  In the ChartView control, I use:

var lineSeries = new LineSeries();
lineSeries.CategoryBinding = new PropertyNameDataPointBinding() { PropertyName = "TimeStamp" };
lineSeries.ValueBinding = new PropertyNameDataPointBinding() { PropertyName = "Value" };
lineSeries.ItemsSource = (chart.Chart as GuiAnalogQueue).Records;

to add a new LineSeries accompanied with addition VerticalAxes.  This is the binding that takes care of all my data changing dynamically. 

Now, I'm trying to apply this data to allow the user to user a Gauge to display the same data, just in a different fashion (Gauge vs. ChartView).  However, when I do something like
<telerik:Needle x:Name="needle" IsAnimated="True" Value="{Binding Value}"/>
or
<telerik:Needle x:Name="needle" IsAnimated="True" Value="{Binding chart.Chart.Value}"/>

My needle doesn't move at all, whatsoever.  What steps should I take to achieve changing the value of the Gauge's needle?

Kevin

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 27 Jul 2012, 08:24 AM
Hi Kevin,

It is very complicated and it is hard to reproduce the problem without your solution, but using just a code snippet you sent. Could you, please, provide us  with a small sample runnable solution which reproduces it? You can attach it in the support thread you started on the same topic. I suggest we continue any further conversation on this there to avoid duplicate threads.

Greetings,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Gauges
Asked by
developer
Top achievements
Rank 2
Answers by
Andrey
Telerik team
Share this question
or