C# Class csCommon.Controls.PropertyDial

Follow steps 1a or 1b and then 2 to use this custom control in a XAML file. Step 1a) Using this custom control in a XAML file that exists in the current project. Add this XmlNamespace attribute to the root element of the markup file where it is to be used: xmlns:MyNamespace="clr-namespace:NetMatch" Step 1b) Using this custom control in a XAML file that exists in a different project. Add this XmlNamespace attribute to the root element of the markup file where it is to be used: xmlns:MyNamespace="clr-namespace:NetMatch;assembly=NetMatch" You will also need to add a project reference from the project where the XAML file lives to this project and Rebuild to avoid compilation errors: Right click on the target project in the Solution Explorer and "Add Reference"->"Projects"->[Browse to and select this project] Step 2) Go ahead and use your control in the XAML file.
Inheritance: System.Windows.Controls.Control
Mostra file Open project: TNOCS/csTouch

Public Properties

Property Type Description
AngleProperty System.Windows.DependencyProperty
CircleOffsetProperty System.Windows.DependencyProperty
CircleSizeProperty System.Windows.DependencyProperty
MaxProperty System.Windows.DependencyProperty
MinProperty System.Windows.DependencyProperty
RelatieveTurnsProperty System.Windows.DependencyProperty
StartAngleProperty System.Windows.DependencyProperty
UnitSizeProperty System.Windows.DependencyProperty
UnitStringProperty System.Windows.DependencyProperty
ValueFormatProperty System.Windows.DependencyProperty
ValueModeProperty System.Windows.DependencyProperty
ValueProperty System.Windows.DependencyProperty
ValueStringProperty System.Windows.DependencyProperty

Public Methods

Method Description
OnApplyTemplate ( ) : void
PropertyDial_MouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
PropertyDial_MouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
PropertyDial_MouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
PropertyDial_TouchDown ( object sender, System.Windows.Input.TouchEventArgs e ) : void
PropertyDial_TouchMove ( object sender, System.Windows.Input.TouchEventArgs e ) : void
PropertyDial_TouchUp ( object sender, System.Windows.Input.TouchEventArgs e ) : void
SetAngle ( double angle ) : void

Private Methods

Method Description
CAngle ( Point start, Point end ) : double

Calculate angle in radians between line defined with two points and x-axis.

OnValuePropertyChanged ( DependencyObject source, System.Windows.DependencyPropertyChangedEventArgs e ) : void
PropertyDial ( ) : System
UpdateAngle ( Point p ) : void

Method Details

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

PropertyDial_MouseDown() public method

public PropertyDial_MouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

PropertyDial_MouseMove() public method

public PropertyDial_MouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
return void

PropertyDial_MouseUp() public method

public PropertyDial_MouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

PropertyDial_TouchDown() public method

public PropertyDial_TouchDown ( object sender, System.Windows.Input.TouchEventArgs e ) : void
sender object
e System.Windows.Input.TouchEventArgs
return void

PropertyDial_TouchMove() public method

public PropertyDial_TouchMove ( object sender, System.Windows.Input.TouchEventArgs e ) : void
sender object
e System.Windows.Input.TouchEventArgs
return void

PropertyDial_TouchUp() public method

public PropertyDial_TouchUp ( object sender, System.Windows.Input.TouchEventArgs e ) : void
sender object
e System.Windows.Input.TouchEventArgs
return void

SetAngle() public method

public SetAngle ( double angle ) : void
angle double
return void

Property Details

AngleProperty public_oe static_oe property

public static DependencyProperty,System.Windows AngleProperty
return System.Windows.DependencyProperty

CircleOffsetProperty public_oe static_oe property

public static DependencyProperty,System.Windows CircleOffsetProperty
return System.Windows.DependencyProperty

CircleSizeProperty public_oe static_oe property

public static DependencyProperty,System.Windows CircleSizeProperty
return System.Windows.DependencyProperty

MaxProperty public_oe static_oe property

public static DependencyProperty,System.Windows MaxProperty
return System.Windows.DependencyProperty

MinProperty public_oe static_oe property

public static DependencyProperty,System.Windows MinProperty
return System.Windows.DependencyProperty

RelatieveTurnsProperty public_oe static_oe property

public static DependencyProperty,System.Windows RelatieveTurnsProperty
return System.Windows.DependencyProperty

StartAngleProperty public_oe static_oe property

public static DependencyProperty,System.Windows StartAngleProperty
return System.Windows.DependencyProperty

UnitSizeProperty public_oe static_oe property

public static DependencyProperty,System.Windows UnitSizeProperty
return System.Windows.DependencyProperty

UnitStringProperty public_oe static_oe property

public static DependencyProperty,System.Windows UnitStringProperty
return System.Windows.DependencyProperty

ValueFormatProperty public_oe static_oe property

public static DependencyProperty,System.Windows ValueFormatProperty
return System.Windows.DependencyProperty

ValueModeProperty public_oe static_oe property

public static DependencyProperty,System.Windows ValueModeProperty
return System.Windows.DependencyProperty

ValueProperty public_oe static_oe property

public static DependencyProperty,System.Windows ValueProperty
return System.Windows.DependencyProperty

ValueStringProperty public_oe static_oe property

public static DependencyProperty,System.Windows ValueStringProperty
return System.Windows.DependencyProperty