Свойство | Тип | Описание | |
---|---|---|---|
AccentColorProperty | |||
ChartTitleProperty | |||
DarkAccentColorProperty | |||
GraphDataProperty |
Метод | Описание | |
---|---|---|
Graph ( ) : System | ||
ZoomOut ( ) : void |
Completely zoom out to all of the graph data
|
|
ZoomToPoints ( double minX, double maxX ) : void |
Zoom the graph onto a subset of its points
|
Метод | Описание | |
---|---|---|
MeasureOverride ( |
||
OnManipulationCompleted ( System.Windows.Input.ManipulationCompletedEventArgs e ) : void | ||
OnManipulationDelta ( System.Windows.Input.ManipulationDeltaEventArgs e ) : void | ||
OnManipulationStarted ( System.Windows.Input.ManipulationStartedEventArgs e ) : void |
Метод | Описание | |
---|---|---|
ChangeBounds ( double newWidth, double newHeight ) : void |
Resize the graph.
|
|
ClearGraph ( ) : void |
Draw an empty graph with "No data to display" text
|
|
CombineScaleTransform ( double CenterX, double ScaleX ) : void |
Recompute the graph's scale transformation given a user manipulation.
|
|
ComputeGraphBounds ( ) : void |
Iterates over all of the points and determines the range of values (min, max for x and y coordinates)
|
|
CreateGraph ( ) : void |
Meat and potatoes, draw the graph
|
|
DrawHighlightedPoint ( ) : void |
Draws the highlighted point (if any) that the user selected when he touched the chart.
|
|
FindNearestPoint ( double targetX, int graphIndex ) : int |
Uses binary search to find the point with the given targetX or the point immediately preceding that x coordinate.
|
|
FullRedraw ( ) : void | ||
GenerateLeftBorder ( ) : void |
Generate the Y-Axis border of the graph. This can be done once for the graph since the Y-Axis does not scale or transform in this version.
|
|
GenerateSubGraphs ( ) : void |
Generates several sub graphs with progressively fewer number of data points This allows us to redraw the graph quickly during manipulation
|
|
Graph_Loaded ( object sender, |
||
Graph_Unloaded ( object sender, |
||
OnGraphDataChanged ( |
Called when the GraphData property was set by the user
|
|
ScreenToWorld ( double x, double y ) : Point |
Transforms screen coordinates to world coordinates.
|
|
ScreenToWorldX ( double x ) : double |
Transforms only a screen x coordinate to world x coordinates
|
|
ScreenToWorldY ( double y ) : double |
Transforms only a screen y coordinate to world y coordinates
|
|
TriggerGraphRefresh ( ) : void |
Trigger a full refresh of the graph starting with a lower resolution and working up
|
|
UpdateGraphFillGradient ( ) : void |
Small helper function that generates the Brush that comprises the gradient for the fill graph
|
|
WorldToScreenOptimized ( double x, double y ) : Point |
Transforms world coordinates to screen coordinates, noting that the Graph actually computed the y coordinate in advance (when GraphData was set) since we only scale on the X-Axis
|
|
WorldToScreenYCoord ( double y ) : double |
Transform a world y-coordinate to a screen-y coordinate.
|
|
ZoomToPoints ( int minPoint, int maxPoint ) : void |
Zooms the graph onto a subset of points
|
|
drawTimer_Tick ( object sender, |
This is the graph drawing loop. It will draw low resolution graphs while the graph is being manipulated, and progressively higher resolution when content is static.
|
protected MeasureOverride ( |
||
availableSize | ||
Результат |
protected OnManipulationCompleted ( System.Windows.Input.ManipulationCompletedEventArgs e ) : void | ||
e | System.Windows.Input.ManipulationCompletedEventArgs | |
Результат | void |
protected OnManipulationDelta ( System.Windows.Input.ManipulationDeltaEventArgs e ) : void | ||
e | System.Windows.Input.ManipulationDeltaEventArgs | |
Результат | void |
protected OnManipulationStarted ( System.Windows.Input.ManipulationStartedEventArgs e ) : void | ||
e | System.Windows.Input.ManipulationStartedEventArgs | |
Результат | void |
public ZoomToPoints ( double minX, double maxX ) : void | ||
minX | double | The desired minimum x parameter of the drawn graph |
maxX | double | The desired maximum x parameter of the drawn graph |
Результат | void |
public static DependencyProperty,System.Windows AccentColorProperty | ||
Результат |
public static DependencyProperty,System.Windows ChartTitleProperty | ||
Результат |
public static DependencyProperty,System.Windows DarkAccentColorProperty | ||
Результат |