Building a UWP Rating Control using XAML and the Composition API

Rating control for UWP apps

XAML Brewer, by Diederik Krols

In this article we’ll build a XAML and C# Rating Control for the Windows Universal Platform which will be entirely drawn by the Composition API. It’s a custom Control that comes with the following dependency properties:

  • Maximum (int): the number of stars (or other images) to display,
  • StepFrequency (double): the rounding interval for the Value (a percentage, e.g. 0.25)
  • Value (double): the current value (from 0 to Maximum)
  • ItemHeight (int): height (and width) of each image in device independent pixels
  • ItemPadding (int): the number of 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)

The names of the core properties (Maximum, StepFrequency, and Value) are borrowed from the Slider class because after all –just like the slider- a Rating control is just a…

View original post 1,252 more words


WordPress for Phone now in store

Get my new updated app for a free trial

Studio for WP

The new, refreshed WordPress for Phone now available in the Windows Phone store.

With this update we have added a lot of new features and an exciting new look and feel.


• Get the latest “Freshly Pressed” posts.
• WordPress Reader – Get posts from blogs you follow.
• My Blogs – Sign-in to manage all your blogs from your phone.
• Blogs stats – Weekly and monthly views for your blogs.
• Easy to use Post editing and publishing.
• Comments – See latest comments for your blog.
• Explore – The latest from the world of WordPress. Find who is writing about what instantly on WordPress.

Get the free trial right now!!!

Download now

View original post

Learn to build Windows Store apps

Windows 8 User experience guidelines Use this index to quickly find the user experience (UX) guidelines that can help you create a great Windows Store app.  If you haven't already, you should start by reading Making great Windows Store apps and Planning Windows Store apps. Learn to build Windows Store apps Learn the basics of … Continue reading Learn to build Windows Store apps

Silverlight 5 Validation

Here is a post on Silverlight validation from Steven Hollidge on #WINNING with C# Silverlight 5 Validation Moving forward with .NET 4.5 the validation story will be played out through the INotifyDataErrorInfo interface. This demo can also be accessed online here. Tricks This example shows the following tricks when validating user input in Silverlight: MVVM with independent … Continue reading Silverlight 5 Validation