Skip to content
A UWP Rating Control drawn by the Composition API.
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
XamlBrewer.Uwp.Composition.Rating
XamlBrewer.Uwp.Rating
.gitattributes
.gitignore
README.md
XamlBrewer.Uwp.Composition.Rating.sln
XamlBrewer.Uwp.Rating.nuspec
nuget.png

README.md

UWP-Composition-Rating-Control

A UWP Rating Control drawn by the Composition API.

##NuGet Package To install Rating Control for UWP, run the following command in the Package Manager Console

PM> Install-Package XamlBrewer.Uwp.Rating

##Properties and Behavior Comes with the following dependency properties:

  • Maximum (int): number of stars, maximum score
  • StepFrequency (double): rounding interval, a percentage (e.g. 0.25)
  • Value (double): current value (from 0 to Maximum)
  • ItemHeight (int): height (and width) of each image in device independent pixels
  • ImagePadding (int): pixels between images
  • FilledImage (uri): path to the filled image
  • EmptyImage (uri): path to the empty image
  • IsInteractive (bool): whether or not the control responds to user input (tapping or sliding)

Behavior:

  • Tap on an image to apply the integral value
  • Slide horizontally over the control to decrease and increase value with StepFrequency

There's a blog post explaining the code right here: https://xamlbrewer.wordpress.com/2016/07/11/building-a-uwp-rating-control-using-xaml-and-the-composition-api/

You can’t perform that action at this time.