C# Class RadialMenuControl.UserControl.MeterSubMenu

Inheritance: MenuBase
Afficher le fichier Open project: CatalystCode/radial-menu

Méthodes publiques

Свойство Type Description
BackgroundFillBrushProperty Windows.UI.Xaml.DependencyProperty
HoverValueBrushProperty Windows.UI.Xaml.DependencyProperty
Intervals IList
LockedValueProperty Windows.UI.Xaml.DependencyProperty
MeterEndPointProperty Windows.UI.Xaml.DependencyProperty
MeterEndValueProperty Windows.UI.Xaml.DependencyProperty
MeterLineBrushProperty Windows.UI.Xaml.DependencyProperty
MeterPointerLengthProperty Windows.UI.Xaml.DependencyProperty
MeterRadiusProperty Windows.UI.Xaml.DependencyProperty
MeterStartPointProperty Windows.UI.Xaml.DependencyProperty
MeterStartValueProperty Windows.UI.Xaml.DependencyProperty
MeterTextXProperty Windows.UI.Xaml.DependencyProperty
MeterTextYProperty Windows.UI.Xaml.DependencyProperty
OuterEdgeBrushProperty Windows.UI.Xaml.DependencyProperty
OuterEdgeThicknessProperty Windows.UI.Xaml.DependencyProperty
RoundSelectValueProperty Windows.UI.Xaml.DependencyProperty
SelectedValueBrushProperty Windows.UI.Xaml.DependencyProperty
SelectedValueTextBrushProperty Windows.UI.Xaml.DependencyProperty
StartAngleProperty Windows.UI.Xaml.DependencyProperty
TickLengthProperty Windows.UI.Xaml.DependencyProperty

Méthodes publiques

Méthode Description
Draw ( ) : void

Draws the meter, running all necessary math operations and making sure that pixels appear

MeterSubMenu ( ) : System
SetDefault ( DependencyProperty prop, object defaultSetting ) : void

Set default properties on this instance, if a setting has otherwise not been set

Private Methods

Méthode Description
ComputeAngle ( double selectedValue ) : double

Computes and angle based on a selected value

ComputeMeterLinePoint ( double radius, Point pointerPoint, double &angle ) : Point

Projects point from center to target point along a specified radius

ComputeSelectedValue ( double angle ) : bool

Computes the selected value by the user. Returns false if no value selected

DependencyPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handler for changed dependency values

SetMeterPoint ( Point point, bool checkRange = false, bool setSelectedLine = false ) : void

Sets the projection end point for the meter lines

_setMeterPointForValue ( double selectedValue ) : void

Sets the locked meter line to a specified value

Method Details

Draw() public méthode

Draws the meter, running all necessary math operations and making sure that pixels appear
public Draw ( ) : void
Résultat void

MeterSubMenu() public méthode

public MeterSubMenu ( ) : System
Résultat System

SetDefault() public méthode

Set default properties on this instance, if a setting has otherwise not been set
public SetDefault ( DependencyProperty prop, object defaultSetting ) : void
prop Windows.UI.Xaml.DependencyProperty Property to set
defaultSetting object Default setting to apply
Résultat void

Property Details

BackgroundFillBrushProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml BackgroundFillBrushProperty
Résultat Windows.UI.Xaml.DependencyProperty

HoverValueBrushProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml HoverValueBrushProperty
Résultat Windows.UI.Xaml.DependencyProperty

Intervals public_oe property

A list containing defined intervals, allowing you to set custom intervals for the meter. The upper half of the meter could contain values between 0 and 10, while the lower half could contain values between 10 and 50.
public IList Intervals
Résultat IList

LockedValueProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml LockedValueProperty
Résultat Windows.UI.Xaml.DependencyProperty

MeterEndPointProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterEndPointProperty
Résultat Windows.UI.Xaml.DependencyProperty

MeterEndValueProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterEndValueProperty
Résultat Windows.UI.Xaml.DependencyProperty

MeterLineBrushProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterLineBrushProperty
Résultat Windows.UI.Xaml.DependencyProperty

MeterPointerLengthProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterPointerLengthProperty
Résultat Windows.UI.Xaml.DependencyProperty

MeterRadiusProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterRadiusProperty
Résultat Windows.UI.Xaml.DependencyProperty

MeterStartPointProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterStartPointProperty
Résultat Windows.UI.Xaml.DependencyProperty

MeterStartValueProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterStartValueProperty
Résultat Windows.UI.Xaml.DependencyProperty

MeterTextXProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterTextXProperty
Résultat Windows.UI.Xaml.DependencyProperty

MeterTextYProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterTextYProperty
Résultat Windows.UI.Xaml.DependencyProperty

OuterEdgeBrushProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml OuterEdgeBrushProperty
Résultat Windows.UI.Xaml.DependencyProperty

OuterEdgeThicknessProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml OuterEdgeThicknessProperty
Résultat Windows.UI.Xaml.DependencyProperty

RoundSelectValueProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml RoundSelectValueProperty
Résultat Windows.UI.Xaml.DependencyProperty

SelectedValueBrushProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml SelectedValueBrushProperty
Résultat Windows.UI.Xaml.DependencyProperty

SelectedValueTextBrushProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml SelectedValueTextBrushProperty
Résultat Windows.UI.Xaml.DependencyProperty

StartAngleProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml StartAngleProperty
Résultat Windows.UI.Xaml.DependencyProperty

TickLengthProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml TickLengthProperty
Résultat Windows.UI.Xaml.DependencyProperty