This is a migrated thread and some comments may be shown as answers.
Bar Rating - how to?
1 Answer 18 Views
This is a migrated thread and some comments may be shown as answers.
Sridhar
Top achievements
Rank 1
Sridhar asked on 02 Jul 2012, 07:35 AM
Hi,

  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>
            </Grid>
        </Border>

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

Regards
Baliga

1 Answer, 1 is accepted

Sort by
0
Lancelot
Top achievements
Rank 1
answered on 03 Jul 2012, 06:36 PM
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,
Lancelot
Asked by
Sridhar
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
Share this question
or