(X) Hide this
    • Login
    • Join
      • Say No Bots Generate New Image
        By clicking 'Register' you accept the terms of use .
        Login with Facebook

A Dial (User) Control

(0 votes)
0 comments   /   posted by Silverlight Show on Aug 02, 2010
Tags:   controls , user-controls , attached-properties , expression-blend , listbox , phil-middlemiss
Phil Middlemiss has created a sample application with a single Dial UserControl scaled to a couple of different sizes.

I used the PathListBox control for the dial numbers and lights. If you haven’t used the Path ListBox before then here is a good series on it. The finished UserControl has a MaxValue property that lets you specify how many numbers should appear on the dial, but at the start I just had a the shapes for the dial and used a PathListBox with some fixed items in it.

The first challenge was to get the PathListBoxItem control template to show a mix of orientations. There are two kinds of orientations you can have with a PathListBox: None and OrientToPath.


Comments

No comments

Add Comment

Login to comment:
  *      *       
Login with Facebook

Our News on Twitter