C# Class RadialMenuControl.UserControl.MeterSubMenu

Inheritance: MenuBase
显示文件 Open project: CatalystCode/radial-menu

Public Properties

Property 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

Public Methods

Method 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

Method 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 method

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

MeterSubMenu() public method

public MeterSubMenu ( ) : System
return System

SetDefault() public method

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
return void

Property Details

BackgroundFillBrushProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml BackgroundFillBrushProperty
return Windows.UI.Xaml.DependencyProperty

HoverValueBrushProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml HoverValueBrushProperty
return 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
return IList

LockedValueProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml LockedValueProperty
return Windows.UI.Xaml.DependencyProperty

MeterEndPointProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterEndPointProperty
return Windows.UI.Xaml.DependencyProperty

MeterEndValueProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterEndValueProperty
return Windows.UI.Xaml.DependencyProperty

MeterLineBrushProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterLineBrushProperty
return Windows.UI.Xaml.DependencyProperty

MeterPointerLengthProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterPointerLengthProperty
return Windows.UI.Xaml.DependencyProperty

MeterRadiusProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterRadiusProperty
return Windows.UI.Xaml.DependencyProperty

MeterStartPointProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterStartPointProperty
return Windows.UI.Xaml.DependencyProperty

MeterStartValueProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterStartValueProperty
return Windows.UI.Xaml.DependencyProperty

MeterTextXProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterTextXProperty
return Windows.UI.Xaml.DependencyProperty

MeterTextYProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml MeterTextYProperty
return Windows.UI.Xaml.DependencyProperty

OuterEdgeBrushProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml OuterEdgeBrushProperty
return Windows.UI.Xaml.DependencyProperty

OuterEdgeThicknessProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml OuterEdgeThicknessProperty
return Windows.UI.Xaml.DependencyProperty

RoundSelectValueProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml RoundSelectValueProperty
return Windows.UI.Xaml.DependencyProperty

SelectedValueBrushProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml SelectedValueBrushProperty
return Windows.UI.Xaml.DependencyProperty

SelectedValueTextBrushProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml SelectedValueTextBrushProperty
return Windows.UI.Xaml.DependencyProperty

StartAngleProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml StartAngleProperty
return Windows.UI.Xaml.DependencyProperty

TickLengthProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml TickLengthProperty
return Windows.UI.Xaml.DependencyProperty