C# Class TrakHound_UI.PieChart

Interaction logic for PieChart.xaml
Inheritance: System.Windows.Controls.UserControl
Show file Open project: TrakHound/TrakHound-Community

Public Properties

Property Type Description
ColorSelectorProperty System.Windows.DependencyProperty
HoleSizeProperty System.Windows.DependencyProperty
PlottedPropertyProperty System.Windows.DependencyProperty

Public Methods

Method 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

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

public static GetColorSelector ( UIElement element ) : IColorSelector
element UIElement
return IColorSelector

GetPlottedProperty() public static method

public static GetPlottedProperty ( UIElement element ) : String
element UIElement
return String

PieChart() public method

public PieChart ( ) : System
return System

SetColorSelector() public static method

public static SetColorSelector ( UIElement element, IColorSelector value ) : void
element UIElement
value IColorSelector
return void

SetPlottedProperty() public static method

public static SetPlottedProperty ( UIElement element, String value ) : void
element UIElement
value String
return void

Property Details

ColorSelectorProperty public static property

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

HoleSizeProperty public static property

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

PlottedPropertyProperty public static property

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