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
Afficher le fichier Open project: TNOCS/csTouch

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public OnApplyTemplate ( ) : void
Résultat void

PropertyDial_MouseDown() public méthode

public PropertyDial_MouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
Résultat void

PropertyDial_MouseMove() public méthode

public PropertyDial_MouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
Résultat void

PropertyDial_MouseUp() public méthode

public PropertyDial_MouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
Résultat void

PropertyDial_TouchDown() public méthode

public PropertyDial_TouchDown ( object sender, System.Windows.Input.TouchEventArgs e ) : void
sender object
e System.Windows.Input.TouchEventArgs
Résultat void

PropertyDial_TouchMove() public méthode

public PropertyDial_TouchMove ( object sender, System.Windows.Input.TouchEventArgs e ) : void
sender object
e System.Windows.Input.TouchEventArgs
Résultat void

PropertyDial_TouchUp() public méthode

public PropertyDial_TouchUp ( object sender, System.Windows.Input.TouchEventArgs e ) : void
sender object
e System.Windows.Input.TouchEventArgs
Résultat void

SetAngle() public méthode

public SetAngle ( double angle ) : void
angle double
Résultat void

Property Details

AngleProperty public_oe static_oe property

public static DependencyProperty,System.Windows AngleProperty
Résultat System.Windows.DependencyProperty

CircleOffsetProperty public_oe static_oe property

public static DependencyProperty,System.Windows CircleOffsetProperty
Résultat System.Windows.DependencyProperty

CircleSizeProperty public_oe static_oe property

public static DependencyProperty,System.Windows CircleSizeProperty
Résultat System.Windows.DependencyProperty

MaxProperty public_oe static_oe property

public static DependencyProperty,System.Windows MaxProperty
Résultat System.Windows.DependencyProperty

MinProperty public_oe static_oe property

public static DependencyProperty,System.Windows MinProperty
Résultat System.Windows.DependencyProperty

RelatieveTurnsProperty public_oe static_oe property

public static DependencyProperty,System.Windows RelatieveTurnsProperty
Résultat System.Windows.DependencyProperty

StartAngleProperty public_oe static_oe property

public static DependencyProperty,System.Windows StartAngleProperty
Résultat System.Windows.DependencyProperty

UnitSizeProperty public_oe static_oe property

public static DependencyProperty,System.Windows UnitSizeProperty
Résultat System.Windows.DependencyProperty

UnitStringProperty public_oe static_oe property

public static DependencyProperty,System.Windows UnitStringProperty
Résultat System.Windows.DependencyProperty

ValueFormatProperty public_oe static_oe property

public static DependencyProperty,System.Windows ValueFormatProperty
Résultat System.Windows.DependencyProperty

ValueModeProperty public_oe static_oe property

public static DependencyProperty,System.Windows ValueModeProperty
Résultat System.Windows.DependencyProperty

ValueProperty public_oe static_oe property

public static DependencyProperty,System.Windows ValueProperty
Résultat System.Windows.DependencyProperty

ValueStringProperty public_oe static_oe property

public static DependencyProperty,System.Windows ValueStringProperty
Résultat System.Windows.DependencyProperty