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

property is not in 2012Q2 sp1 Version Control.

1 Answer 32 Views
BulletGraph
This is a migrated thread and some comments may be shown as answers.
lee doo
Top achievements
Rank 1
lee doo asked on 27 Jul 2012, 08:39 AM
I Use latest Version control.
that property set Bold Font is not latest Version.

What is Property Replaced?

Thank you.
<Style x:Key="RadHorizontalBulletGraphStyle" TargetType="telerik:RadHorizontalBulletGraph">  
  <Setter Property="ComparativeMeasureThickness" Value="2"/>  
  <Setter Property="FontSize" Value="10"/>
  <Setter Property="Template">
   <Setter.Value>
    <ControlTemplate TargetType="telerik:RadHorizontalBulletGraph">
     <Grid>
      <Grid.RowDefinitions>
       <RowDefinition Height="*"/>
       <RowDefinition Height="Auto"/>
      </Grid.RowDefinitions>
                        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.Row="0">
                            <Grid>
                                <telerik:QualitativeRangeContainer ChildrenSource="{TemplateBinding QualitativeRanges}"/>
                                <telerik:PositioningIndicatorPanel x:Name="PART_AxisPanel"/>
                                <Grid>
                                    <Grid.Resources>
                                        <Style TargetType="telerik:BarItem">
                                            <Setter Property="LengthPercent" Value="1" />
                                        </Style>
                                    </Grid.Resources>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="3*" />
                                        <RowDefinition Height="1.5*" />
                                    </Grid.RowDefinitions>
                                    <telerik:FeaturedMeasurePresenter Grid.Row="0" ChildrenSource="{TemplateBinding FeaturedMeasures}"/>
                                    <telerik:ProjectedMeasurePresenter Grid.Row="1" Margin="0,1,0,0" ChildrenSource="{TemplateBinding ProjectedMeasures}"/> --> Error, here property Is not in Class

                                    
                                </Grid>
                                <telerik:ComparativeMeasuresContainer ChildrenSource="{TemplateBinding MergedComparativeMeasures}"/>
                            </Grid>
                        </Border>
                        <telerik:QuantitativeScaleContainer Grid.Row="1" TextFormatString="{TemplateBinding TextFormatString}" Visibility="{TemplateBinding QuantitativeScaleVisibility}" Opacity="0.6" RenderTransformOrigin="0.5,0.5" >
       <telerik:QuantitativeScaleContainer.RenderTransform>
        <CompositeTransform TranslateY="10"/>
       </telerik:QuantitativeScaleContainer.RenderTransform>
      </telerik:QuantitativeScaleContainer>
     </Grid>
    </ControlTemplate>
   </Setter.Value>
  </Setter>
 </Style>

1 Answer, 1 is accepted

Sort by
0
Rosko
Telerik team
answered on 31 Jul 2012, 10:53 AM
Hi,

Thank you for the detailed instructions.

Some breaking changes have been done for the past releases which include the removal of the related class and property. A new ControlTemplate has been introduced for RadBulletGraph. If you want for the demo to work with the newest binaries, you need to change it with the following ControlTemplate.

<ControlTemplate TargetType="telerik:RadHorizontalBulletGraph">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.Row="0">
                                <Grid>
                                    <telerik:QualitativeRangeContainer ChildrenSource="{TemplateBinding QualitativeRanges}" Range="{TemplateBinding Range}"/>
                                    <Grid>
                                        <Grid.Resources>
                                            <Style TargetType="telerik:BarItem" BasedOn="{StaticResource BarItemStyle}">
                                                <Setter Property="LengthPercent" Value="1" />
                                            </Style>
                                        </Grid.Resources>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="5*" />
                                            <RowDefinition Height="*" />
                                        </Grid.RowDefinitions>
                                        <telerik:FeaturedMeasurePresenter Grid.Row="0" Content="{TemplateBinding FeaturedMeasureInternal}" Background="#FF333333" />
                                        <telerik:FeaturedMeasurePresenter Grid.Row="1" Content="{TemplateBinding ProjectedMeasureInternal}" Margin="0,1,0,0"  />
                                    </Grid>
                                    <telerik:ComparativeMeasuresContainer ChildrenSource="{TemplateBinding MergedComparativeMeasures}" Range="{TemplateBinding Range}" />
                                </Grid>
                            </Border>
                            <telerik:QuantitativeScaleContainer Grid.Row="1" TextFormatString="{TemplateBinding TextFormatString}" Visibility="{TemplateBinding QuantitativeScaleVisibility}" Opacity="0.6" RenderTransformOrigin="0.5,0.5" Range="{TemplateBinding Range}"  >
                                <telerik:QuantitativeScaleContainer.RenderTransform>
                                    <TranslateTransform Y="10"/>
                                </telerik:QuantitativeScaleContainer.RenderTransform>
                            </telerik:QuantitativeScaleContainer>
                        </Grid>
</ControlTemplate>

I hope this will help you to solve the issue.

Regards,
Rosko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
BulletGraph
Asked by
lee doo
Top achievements
Rank 1
Answers by
Rosko
Telerik team
Share this question
or