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

[Solved] Starnge black oval and ComparativeMeasure binding

3 Answers 29 Views
BulletGraph for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alexander
Top achievements
Rank 1
Alexander asked on 15 Oct 2012, 10:36 AM
Hi!
We tried to use bullet graph do indicate some realtime process. We have such code:

            <DataTemplate x:Key="LabelTemplate">
                <TextBlock Text="{Binding}" FontSize="16" Foreground="{StaticResource ApplicationSecondaryForegroundThemeBrush}"/>
            </DataTemplate>
             
            <DataTemplate x:Key="TickTemplate">
                <Rectangle Width="3" Height="9" Fill="Green"/>
            </DataTemplate>
             
            <DataTemplate x:Key="ComparativeMeasureTemplate">
                <Rectangle Width="4" Height="20">
                    <Rectangle.Fill>
                        <SolidColorBrush Color="Blue" />
                    </Rectangle.Fill>
                </Rectangle>
            </DataTemplate>        
 
...
 
<bullet:RadBulletGraph
    Grid.Row="0"
    Margin="30,60,50,20"
    Orientation="Vertical"
    StartValue="{Binding MinValue}"
    EndValue="{Binding MaxValue}"
    FeaturedMeasureStartValue="{Binding MinValue}"
        FeaturedMeasureBrush="{Binding Brush}"
    FeaturedMeasure="{Binding LastActualValue}"
        ComparativeMeasure="{Binding LastSetValue}"
>
    <bullet:RadBulletGraph.QualitativeRanges>
        <bullet:BarIndicatorSegment Stroke="{StaticResource GaugeOutOfLimitsBrush}" Thickness="20" Length="50" />
        <bullet:BarIndicatorSegment Stroke="{StaticResource GaugeInLimitsBrush}" Thickness="20" Length="75" />
        <bullet:BarIndicatorSegment Stroke="{StaticResource GaugeOutOfLimitsBrush}" Thickness="20" Length="50" />
    </bullet:RadBulletGraph.QualitativeRanges>
</bullet:RadBulletGraph>                   


We have two problems. First problem is unknown black oval which we can't remove. We even can't imagine what is that.
Second problem is that ComparativeMeasure always show min value on the graph.

Here you can see screenshot:

3 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 17 Oct 2012, 08:16 AM
Hi Alexander,

Thank you for contacting us and for your question.

The black oval you see is the "FeaturedMeasureAlternativeTemplate" property. You may set it to an empty DataTemplate to remove its visual representation. As for the ComparativeMeasure issue you describe - I tried to reproduce it locally but to no avail.

Could you please verify that the established Binding is properly resolved and the ComparativeMeasure value of the bulletgraph is changed? If you still experience the problem I would kindly ask you to prepare a simple demo and send it back to me so that I can debug it locally and try to reproduce the issue.

I am looking forward to your reply.

Regards,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Alexander
Top achievements
Rank 1
answered on 17 Oct 2012, 09:21 AM
Thanks for your feedback.

We want to make demo, but have not time now.

At this time we simply set all min values to zero and all works fine. It's enough for our demo application for customers.

And we'll create bug demo for you just after emerjency job will done...
0
Georgi
Telerik team
answered on 19 Oct 2012, 08:30 AM
Hi Alexander,

Thanks for getting back to me - I am looking forward to a reproducible demo of the problem you describe.

Regards,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
BulletGraph for XAML
Asked by
Alexander
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Alexander
Top achievements
Rank 1
Share this question
or