Extended Library for WPF and Silverlight | ComponentOne
Rating (WPF Only) / Features / Adding Animation to the C1Rating Control
In This Topic
    Adding Animation to the C1Rating Control
    In This Topic

    Rating for WPF provides users a feature to add animation effects to the Rating control by using AnimationType property of the C1Rating class. 

    At Design Time

    1. In Design view, select the Rating control on the Main Window by clicking it once.
    2. Navigate to the Properties window and locate the AnimationType property.
    3. Click the drop-down arrow and select the animation effect you want to apply to the Rating control. By default, the AnimationType property is set to None. For this example, select Bounce to apply a bouncing effect to the control.

      Property Window for C1Rating

    4. Press F5 to run the program. Click the stars to see the bouncing animation effect.

    In Code

    You can add animation effect to the Rating control by adding the following markup between the <c1:C1Rating> tags.

    XAML
    Copy Code
    <c1:C1Rating x:Name="Rating1" HorizontalAlignment="Left" VerticalAlignment="Top" AnimationType="Bounce"/>
    
    See Also