C# Class TrakHound_UI.PieChart

Interaction logic for PieChart.xaml
Inheritance: System.Windows.Controls.UserControl
Afficher le fichier Open project: TrakHound/TrakHound-Community

Méthodes publiques

Свойство Type Description
ColorSelectorProperty System.Windows.DependencyProperty
HoleSizeProperty System.Windows.DependencyProperty
PlottedPropertyProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
GetColorSelector ( UIElement element ) : IColorSelector
GetPlottedProperty ( UIElement element ) : String
PieChart ( ) : System
SetColorSelector ( UIElement element, IColorSelector value ) : void
SetPlottedProperty ( UIElement element, String value ) : void

Private Methods

Méthode Description
BoundCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Handles events which are raised when the bound collection changes (i.e. items added/removed)

CollectionViewCurrentChanged ( object sender, EventArgs e ) : void

Handles the event which occurs when the selected item has changed

CollectionViewCurrentChanging ( object sender, System.ComponentModel.CurrentChangingEventArgs e ) : void

Handles the event which occurs when the selected item is about to change

ConstructPiePieces ( ) : void

Constructs pie pieces and adds them to the visual tree for this control's canvas

DataContextChangedHandler ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handle changes in the datacontext. When a change occurs handlers are registered for events which occur when the collection changes or any items within teh collection change.

GetPlottedPropertyValue ( object item ) : double
ItemPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles events which occur when the properties of bound items change.

ObserveBoundCollectionChanges ( ) : void

Iterates over the items inthe bound collection, adding handlers for PropertyChanged events

PiePieceMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Handles the MouseUp event from the individual Pie Pieces

PiePieceToolTipOpening ( object sender, System.Windows.Controls.ToolTipEventArgs e ) : void

Handles the event which occurs just before a pie piece tooltip opens

PlottedPropertyChanged ( object sender, EventArgs e ) : void

Handles changes to the PlottedProperty property.

Method Details

GetColorSelector() public static méthode

public static GetColorSelector ( UIElement element ) : IColorSelector
element UIElement
Résultat IColorSelector

GetPlottedProperty() public static méthode

public static GetPlottedProperty ( UIElement element ) : String
element UIElement
Résultat String

PieChart() public méthode

public PieChart ( ) : System
Résultat System

SetColorSelector() public static méthode

public static SetColorSelector ( UIElement element, IColorSelector value ) : void
element UIElement
value IColorSelector
Résultat void

SetPlottedProperty() public static méthode

public static SetPlottedProperty ( UIElement element, String value ) : void
element UIElement
value String
Résultat void

Property Details

ColorSelectorProperty public_oe static_oe property

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

HoleSizeProperty public_oe static_oe property

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

PlottedPropertyProperty public_oe static_oe property

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