RatingControl
is a versatile WPF user control that enables users to rate items on a scale of 1 to 5 stars.
- Clickable five-star rating system
- Complete Scalable. Scales to fit
- Read-only and editable mode options
- Half-star rating support for increased precision
RatingValue
property for binding to a ViewModel
To incorporate the RatingControl
into your application, add it to your XAML code:
<Window x:Class="MyApp.MainWindow"
xmlns:uc="clr-namespace:Jon.WPF.NetCore.UserControls.MostWanted.Controls;assembly=Jon.WPF.NetCore.UserControls.MostWanted"
...>
<Grid>
<uc:RatingControl RatingValue="{Binding MyRating}" />
</Grid>
</Window>
In this example, MyRating
represents a property within your ViewModel that can be bound to the RatingValue
property of the control.
Enhance the appearance of the RatingControl
by adjusting these resources:
RatingStarStyle
: Define the style of the star shapeRatingThumbStyle
: Customize the style of the thumb (white circle indicating the selected rating)RatingSelectedBackgroundBrush
: Set the background color of selected starsRatingDisabledBackgroundBrush
: Choose the background color for disabled starsRatingDisabledBorderBrush
: Specify the border color of disabled stars
For a highly customizable and user-friendly rating experience, RatingControl
offers a powerful solution for any WPF application.
If you'd like to contribute to the development of the ToggleSwitch Control, please follow these guidelines:
- Fork the repository on GitHub.
- Create a branch for your changes.
- Make your changes and commit them to your branch.
- Create a pull request with a description of your changes.
All contributions are greatly appreciated!
If you encounter any issues or have questions about the RatingControl , please create an issue on the GitHub repository, and we will do our best to help you.
ToggleSwitch Control was developed by Jon M. Sales as an open-source project. Special thanks to all contributors and users of the control.
Happy coding!