Nick X Tsui
Nick X Tsui

Reputation: 2902

A nice-looking WPF knob control source code?

I am trying to make some rotary knob with WPF and C#, .NET3.5; So right now what I am having is:

enter image description here

but instead, I really want to have something like these:

enter image description here enter image description here

Anyone has any idea how I can make it look nicer? I am writing the WPF code from scratch. Thanks a lot.

Upvotes: 2

Views: 2441

Answers (2)

Henrik Gering
Henrik Gering

Reputation: 1891

You can create such an effect by finding a nice pictue of a knob, and then apply a rotatetransform on it.

If the picture contains the scale, you will need to edit that out to an other image, which can be under the knob picture.

Upvotes: 0

LadderLogic
LadderLogic

Reputation: 1140

You are using SolidColorBrush right now. Play with RadialGradientBrush instead to achieve the look.

Upvotes: 1

Related Questions