C# Class ArcGISPortalViewer.Popup.Primitives.Charting.BaseChart

Inheritance: Windows.UI.Xaml.Controls.Control
Datei anzeigen Open project: Esri/arcgis-portalviewer-dotnet

Public Properties

Property Type Description
FieldsProperty Windows.UI.Xaml.DependencyProperty
ItemsSourceProperty Windows.UI.Xaml.DependencyProperty
KeyToLabelDictionaryProperty Windows.UI.Xaml.DependencyProperty

Protected Methods

Method Description
FormattedValue ( double value ) : string

Returns a double value formatted to be displayed in axis or tooltip.

GenerateChart ( ) : void

Generates the chart from the ItemsSource

GetColorByIndex ( int index ) : Brush

Returns a color by index

InvalidateChart ( ) : void

Invalidates the chart

MeasureOverride ( Size availableSize ) : Size

Overrides MeasureOverride

OnApplyTemplate ( ) : void

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call M:System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application.

SetTooltip ( DependencyObject element, string key, string value ) : void

Set the tooltip of a data point

Private Methods

Method Description
BaseChart ( ) : System

Initializes a new instance of the BaseChart class.

OnFieldsPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnItemsSourceChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnKeyToLabelDictionaryPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
SetItemsSource ( ) : void

Method Details

FormattedValue() protected method

Returns a double value formatted to be displayed in axis or tooltip.
protected FormattedValue ( double value ) : string
value double
return string

GenerateChart() protected abstract method

Generates the chart from the ItemsSource
protected abstract GenerateChart ( ) : void
return void

GetColorByIndex() protected method

Returns a color by index
protected GetColorByIndex ( int index ) : Brush
index int
return Windows.UI.Xaml.Media.Brush

InvalidateChart() protected method

Invalidates the chart
protected InvalidateChart ( ) : void
return void

MeasureOverride() protected method

Overrides MeasureOverride
protected MeasureOverride ( Size availableSize ) : Size
availableSize Windows.Foundation.Size
return Windows.Foundation.Size

OnApplyTemplate() protected method

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call M:System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application.
protected OnApplyTemplate ( ) : void
return void

SetTooltip() protected method

Set the tooltip of a data point
protected SetTooltip ( DependencyObject element, string key, string value ) : void
element Windows.UI.Xaml.DependencyObject
key string
value string
return void

Property Details

FieldsProperty public_oe static_oe property

Identifies the Fields dependency property.
public static DependencyProperty,Windows.UI.Xaml FieldsProperty
return Windows.UI.Xaml.DependencyProperty

ItemsSourceProperty public_oe static_oe property

Identifies the ItemsSource dependency property.
public static DependencyProperty,Windows.UI.Xaml ItemsSourceProperty
return Windows.UI.Xaml.DependencyProperty

KeyToLabelDictionaryProperty public_oe static_oe property

Identifies the KeyToLabelDictionary dependency property.
public static DependencyProperty,Windows.UI.Xaml KeyToLabelDictionaryProperty
return Windows.UI.Xaml.DependencyProperty