Class WaveformChart
Represents a Cartesian chart to show multiple IWaveforms (as WaveformSeries).
public class WaveformChart : Plot, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IPlotView, IView
- Inheritance
-
PlotBasePlotWaveformChart
- Implements
-
IPlotViewIView
- Inherited Members
-
Plot.CulturePropertyPlot.IsLegendVisiblePropertyPlot.LegendBackgroundPropertyPlot.LegendBorderPropertyPlot.LegendBorderThicknessPropertyPlot.LegendFontPropertyPlot.LegendFontSizePropertyPlot.LegendFontWeightPropertyPlot.LegendItemAlignmentPropertyPlot.LegendItemOrderPropertyPlot.LegendItemSpacingPropertyPlot.LegendLineSpacingPropertyPlot.LegendMarginPropertyPlot.LegendMaxHeightPropertyPlot.LegendMaxWidthPropertyPlot.LegendOrientationPropertyPlot.LegendColumnSpacingPropertyPlot.LegendPaddingPropertyPlot.LegendPlacementPropertyPlot.LegendPositionPropertyPlot.LegendSymbolLengthPropertyPlot.LegendSymbolMarginPropertyPlot.LegendSymbolPlacementPropertyPlot.SelectionColorPropertyPlot.RenderingDecoratorPropertyPlot.SubtitleFontPropertyPlot.TitleColorPropertyPlot.SubtitleColorPropertyPlot.DefaultFontPropertyPlot.DefaultFontSizePropertyPlot.DefaultColorsPropertyPlot.AxisTierDistancePropertyPlot.LegendTextColorPropertyPlot.LegendTitlePropertyPlot.LegendTitleColorPropertyPlot.LegendTitleFontPropertyPlot.LegendTitleFontSizePropertyPlot.LegendTitleFontWeightPropertyPlot.PlotAreaBackgroundPropertyPlot.PlotAreaBorderColorPropertyPlot.PlotAreaBorderThicknessPropertyPlot.PlotMarginsPropertyPlot.PlotTypePropertyPlot.SubtitleFontSizePropertyPlot.SubtitleFontWeightPropertyPlot.SubtitlePropertyPlot.TextColorPropertyPlot.TitleAlignmentPropertyPlot.TitleFontPropertyPlot.TitleFontSizePropertyPlot.TitleFontWeightPropertyPlot.TitlePaddingPropertyPlot.TitlePropertyPlot.TitleToolTipPropertyPlot.InvalidateFlagPropertyPlot.OnAppearanceChanged()Plot.AnnotationsPlot.ActualModelPlot.ActualControllerPlot.LogicalChildrenPlot.AxesPlot.CulturePlot.IsLegendVisiblePlot.LegendBackgroundPlot.LegendBorderPlot.LegendBorderThicknessPlot.LegendColumnSpacingPlot.LegendFontPlot.LegendFontSizePlot.LegendFontWeightPlot.LegendItemAlignmentPlot.LegendItemOrderPlot.LegendItemSpacingPlot.LegendLineSpacingPlot.LegendMaxHeightPlot.LegendMaxWidthPlot.LegendMarginPlot.LegendOrientationPlot.LegendPaddingPlot.LegendPlacementPlot.LegendPositionPlot.LegendSymbolLengthPlot.LegendSymbolMarginPlot.LegendSymbolPlacementPlot.LegendTitleFontPlot.DefaultFontPlot.DefaultFontSizePlot.DefaultColorsPlot.LegendTextColorPlot.LegendTitlePlot.LegendTitleColorPlot.AxisTierDistancePlot.SelectionColorPlot.RenderingDecoratorPlot.SubtitleFontPlot.TitleColorPlot.LegendTitleFontSizePlot.SubtitleColorPlot.LegendTitleFontWeightPlot.PlotAreaBackgroundPlot.PlotAreaBorderColorPlot.PlotAreaBorderThicknessPlot.PlotMarginsPlot.PlotTypePlot.SeriesPlot.SubtitlePlot.SubtitleFontSizePlot.SubtitleFontWeightPlot.TextColorPlot.TitlePlot.TitleToolTipPlot.TitleHorizontalAlignmentPlot.TitleFontPlot.TitleFontSizePlot.TitleFontWeightPlot.TitlePaddingPlot.InvalidateFlagPlotBase.PartGridPlotBase.DefaultTrackerTemplatePropertyPlotBase.IsMouseWheelEnabledPropertyPlotBase.PanCursorPropertyPlotBase.ZoomHorizontalCursorPropertyPlotBase.ZoomRectangleCursorPropertyPlotBase.ZoomRectangleTemplatePropertyPlotBase.ZoomVerticalCursorPropertyPlotBase.HideTracker()PlotBase.HideZoomRectangle()PlotBase.ResetAllAxes()PlotBase.OnApplyTemplate()PlotBase.SetCursorType(CursorType)PlotBase.ShowTracker(TrackerHitResult)PlotBase.ShowZoomRectangle(OxyRect)PlotBase.IsVisibleToUser()PlotBase.ToXaml()PlotBase.ToBitmap()PlotBase.DisconnectCanvasWhileUpdatingPlotBase.ClientAreaPlotBase.TrackerDefinitionsPlotBase.DefaultTrackerTemplatePlotBase.IsMouseWheelEnabledPlotBase.PanCursorPlotBase.ZoomHorizontalCursorPlotBase.ZoomRectangleCursorPlotBase.ZoomRectangleTemplatePlotBase.ZoomVerticalCursor
Examples
This example creates a waveform chart, which displays IWaveforms with IAnnotations.
internal class WaveformViewModel
{
public ObservableCollection<IWaveform> Waveforms { get; } = new ObservableCollection<IWaveform>();
public ObservableCollection<IAnnotation> Annotations { get; } = new ObservableCollection<IAnnotation>();
}
Note
The black lines and circles in the result are named annotations. See also RectangleAnnotation, TwoPointLineAnnotation, PointAnnotation, and PolylineAnnotation.
Constructors
WaveformChart()
Initializes a new instance of the WaveformChart class.
public WaveformChart()
Fields
AutoGenerateYAxesProperty
Identifies the AutoGenerateYAxesChanged(DependencyObject, DependencyPropertyChangedEventArgs) dependency property.
public static readonly DependencyProperty AutoGenerateYAxesProperty
Field Value
EnableXAxisZoomProperty
Identifies the EnableXAxisZoom dependency property.
public static readonly DependencyProperty EnableXAxisZoomProperty
Field Value
WaveformAnnotationConverterProperty
Identifies the WaveformAnnotationConverter dependency property.
public static readonly DependencyProperty WaveformAnnotationConverterProperty
Field Value
WaveformAnnotationsProperty
Identifies the WaveformAnnotations dependency property.
public static readonly DependencyProperty WaveformAnnotationsProperty
Field Value
WaveformsProperty
Identifies the Waveforms dependency property.
public static readonly DependencyProperty WaveformsProperty
Field Value
Properties
AutoGenerateYAxes
Gets or sets a value indicating whether foreach waveform a Y axis is generated.
public bool AutoGenerateYAxes { get; set; }
Property Value
EnableXAxisZoom
Gets or sets a value indicating whether the zoom of X axes is enabled.
public bool EnableXAxisZoom { get; set; }
Property Value
WaveformAnnotationConverter
Gets or sets the converter for the waveform annotations. WaveformAnnotationConverter is default.
public WaveformAnnotationConverter WaveformAnnotationConverter { get; set; }
Property Value
WaveformAnnotations
Gets or sets the waveform annotations.
public IEnumerable<IAnnotation> WaveformAnnotations { get; set; }
Property Value
Waveforms
Gets or sets the waveforms.
public IEnumerable<IWaveform> Waveforms { get; set; }