Bar Rating - how to?

2 posts, 0 answers
  1. Sridhar
    Sridhar avatar
    9 posts
    Member since:
    Sep 2011

    Posted 02 Jul 2012 Link to this post


      I am trying to achieve the "bar style" for RadRating - in the example given in the demo, I see, the below attached code -

            <Border Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" Style="{StaticResource Border_Style}">
                <Grid >
                    <TextBlock Style="{StaticResource Title_text}" Text="Bar Rating" />
                    <Grid x:Name="myGrid" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,0,0,15"></Grid>

    I don;t see anything specific to the bar style. Can you tell me how to get the bars in the rad rating please?

  2. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 03 Jul 2012 Link to this post

    Hi Sridhar,

    The code you posted there looks more like it is meant for the DataTemplate. In order to implement it, you need to edit the Style of the RadRatingItem template. You need to open your project in Expression Blend. Expand your RadRating control and right click on one of the RadRatingItems. Select "Edit Template".

    Name the template and click OK. From there you will be brought to the template. The item you want to alter is in the second grid down in your template (see the attached image). Once you alter the template, be sure to apply it as the style of all your RadRatingItems

    Good Luck,
Back to Top