Click here to Skip to main content
11,642,600 members (66,171 online)
Click here to Skip to main content

WPF PolarPanel

, 26 Jan 2008 CPOL 28.9K 696 35
Rate this:
Please Sign up or sign in to vote.
A WPF panel for easily positioning elements in polar coordinates


The PolarPanel is a WPF derived Panel which allows easy positioning of elements in polar coordinates. With polar coordinates, instead of setting X and Y, you set Angle and Radius for each child element.

Using the Code

Coordinate setting is done by setting the attached Angle and Radius properties of the PolarPanel class on a child element.

  • Angle (in degrees) specifies the angle between the positive X line and the line between the panel center and element center.
  • Radius specifies the distance between panel center and element center.

For example:

    <Button Content="12" panels:PolarPanel.Angle="90" panels:PolarPanel.Radius="50" /> 
    <Button Content="1" panels:PolarPanel.Angle="60" panels:PolarPanel.Radius="50" /> 
    <Button Content="2" panels:PolarPanel.Angle="30" panels:PolarPanel.Radius="50" /> 


  • 26th January, 2008: Initial post


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Yaakov Davis
Software Developer
Israel Israel
Experienced in .Net, C#, WPF, user experience.

Read my blog:

You may also be interested in...

Comments and Discussions

Generalcontextmenu Pin
cechode15-Jul-08 18:45
membercechode15-Jul-08 18:45 
GeneralRe: contextmenu Pin
Yaakov Davis15-Jul-08 19:22
memberYaakov Davis15-Jul-08 19:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150731.1 | Last Updated 26 Jan 2008
Article Copyright 2008 by Yaakov Davis
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid