Class LiveScopeControl
LiveScope control for Avalonia
[Obfuscation(Exclude = true, ApplyToMembers = false)]
public class LiveScopeControl : UserControl, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue, ILiveScopeControl, ILiveScopeModel
- Inheritance
-
AvaloniaObjectAnimatableStyledElementVisualLayoutableInteractiveInputElementControlTemplatedControlContentControlUserControlLiveScopeControl
- Implements
-
IDataContextProviderILogicalIThemeVariantHostIResourceHostIResourceNodeIStyleHostISetLogicalParentISetInheritanceParentIStyleableINamedIInputElementIDataTemplateHostISetterValue
- Inherited Members
-
ContentControl.ContentPropertyContentControl.ContentTemplatePropertyContentControl.HorizontalContentAlignmentPropertyContentControl.VerticalContentAlignmentPropertyContentControl.OnPropertyChanged(AvaloniaPropertyChangedEventArgs)ContentControl.RegisterContentPresenter(ContentPresenter)ContentControl.ContentContentControl.ContentTemplateContentControl.PresenterContentControl.HorizontalContentAlignmentContentControl.VerticalContentAlignmentTemplatedControl.BackgroundPropertyTemplatedControl.BackgroundSizingPropertyTemplatedControl.BorderBrushPropertyTemplatedControl.BorderThicknessPropertyTemplatedControl.CornerRadiusPropertyTemplatedControl.FontFamilyPropertyTemplatedControl.FontFeaturesPropertyTemplatedControl.FontSizePropertyTemplatedControl.FontStylePropertyTemplatedControl.FontWeightPropertyTemplatedControl.FontStretchPropertyTemplatedControl.ForegroundPropertyTemplatedControl.PaddingPropertyTemplatedControl.TemplatePropertyTemplatedControl.IsTemplateFocusTargetPropertyTemplatedControl.TemplateAppliedEventTemplatedControl.GetIsTemplateFocusTarget(Control)TemplatedControl.ApplyTemplate()TemplatedControl.GetTemplateFocusTarget()TemplatedControl.OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs)TemplatedControl.OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs)TemplatedControl.OnApplyTemplate(TemplateAppliedEventArgs)TemplatedControl.OnTemplateChanged(AvaloniaPropertyChangedEventArgs)TemplatedControl.BackgroundTemplatedControl.BackgroundSizingTemplatedControl.BorderBrushTemplatedControl.BorderThicknessTemplatedControl.CornerRadiusTemplatedControl.FontFamilyTemplatedControl.FontFeaturesTemplatedControl.FontSizeTemplatedControl.FontStyleTemplatedControl.FontWeightTemplatedControl.FontStretchTemplatedControl.ForegroundTemplatedControl.PaddingTemplatedControl.TemplateTemplatedControl.TemplateAppliedControl.FocusAdornerPropertyControl.TagPropertyControl.ContextMenuPropertyControl.ContextFlyoutPropertyControl.RequestBringIntoViewEventControl.ContextRequestedEventControl.LoadedEventControl.UnloadedEventControl.SizeChangedEventControl.OnLoaded(RoutedEventArgs)Control.OnUnloaded(RoutedEventArgs)Control.OnSizeChanged(SizeChangedEventArgs)Control.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs)Control.OnDetachedFromVisualTreeCore(VisualTreeAttachmentEventArgs)Control.OnGotFocus(GotFocusEventArgs)Control.OnLostFocus(RoutedEventArgs)Control.OnCreateAutomationPeer()Control.OnPointerReleased(PointerReleasedEventArgs)Control.OnKeyUp(KeyEventArgs)Control.FocusAdornerControl.DataTemplatesControl.ContextMenuControl.ContextFlyoutControl.IsLoadedControl.TagControl.ContextRequestedControl.LoadedControl.UnloadedControl.SizeChangedInputElement.FocusablePropertyInputElement.IsEnabledPropertyInputElement.IsEffectivelyEnabledPropertyInputElement.CursorPropertyInputElement.IsKeyboardFocusWithinPropertyInputElement.IsFocusedPropertyInputElement.IsHitTestVisiblePropertyInputElement.IsPointerOverPropertyInputElement.IsTabStopPropertyInputElement.GotFocusEventInputElement.LostFocusEventInputElement.KeyDownEventInputElement.KeyUpEventInputElement.TabIndexPropertyInputElement.TextInputEventInputElement.TextInputMethodClientRequestedEventInputElement.PointerEnteredEventInputElement.PointerExitedEventInputElement.PointerMovedEventInputElement.PointerPressedEventInputElement.PointerReleasedEventInputElement.PointerCaptureLostEventInputElement.PointerWheelChangedEventInputElement.TappedEventInputElement.HoldingEventInputElement.DoubleTappedEventInputElement.Focus(NavigationMethod, KeyModifiers)InputElement.OnKeyDown(KeyEventArgs)InputElement.OnTextInput(TextInputEventArgs)InputElement.OnPointerEntered(PointerEventArgs)InputElement.OnPointerExited(PointerEventArgs)InputElement.OnPointerMoved(PointerEventArgs)InputElement.OnPointerPressed(PointerPressedEventArgs)InputElement.OnPointerCaptureLost(PointerCaptureLostEventArgs)InputElement.OnPointerWheelChanged(PointerWheelEventArgs)InputElement.UpdateIsEffectivelyEnabled()InputElement.FocusableInputElement.IsEnabledInputElement.CursorInputElement.IsKeyboardFocusWithinInputElement.IsFocusedInputElement.IsHitTestVisibleInputElement.IsPointerOverInputElement.IsTabStopInputElement.IsEffectivelyEnabledInputElement.TabIndexInputElement.KeyBindingsInputElement.IsEnabledCoreInputElement.GestureRecognizersInputElement.GotFocusInputElement.LostFocusInputElement.KeyDownInputElement.KeyUpInputElement.TextInputInputElement.TextInputMethodClientRequestedInputElement.PointerEnteredInputElement.PointerExitedInputElement.PointerMovedInputElement.PointerPressedInputElement.PointerReleasedInputElement.PointerCaptureLostInputElement.PointerWheelChangedInputElement.TappedInputElement.HoldingInputElement.DoubleTappedInteractive.RaiseEvent(RoutedEventArgs)Interactive.BuildEventRoute(RoutedEvent)Layoutable.DesiredSizePropertyLayoutable.WidthPropertyLayoutable.HeightPropertyLayoutable.MinWidthPropertyLayoutable.MaxWidthPropertyLayoutable.MinHeightPropertyLayoutable.MaxHeightPropertyLayoutable.MarginPropertyLayoutable.HorizontalAlignmentPropertyLayoutable.VerticalAlignmentPropertyLayoutable.UseLayoutRoundingPropertyLayoutable.UpdateLayout()Layoutable.Measure(Size)Layoutable.Arrange(Rect)Layoutable.InvalidateMeasure()Layoutable.InvalidateArrange()Layoutable.AffectsMeasure<T>(params AvaloniaProperty[])Layoutable.AffectsArrange<T>(params AvaloniaProperty[])Layoutable.MeasureCore(Size)Layoutable.MeasureOverride(Size)Layoutable.ArrangeCore(Rect)Layoutable.ArrangeOverride(Size)Layoutable.OnMeasureInvalidated()Layoutable.OnVisualParentChanged(Visual, Visual)Layoutable.WidthLayoutable.HeightLayoutable.MinWidthLayoutable.MaxWidthLayoutable.MinHeightLayoutable.MaxHeightLayoutable.MarginLayoutable.HorizontalAlignmentLayoutable.VerticalAlignmentLayoutable.DesiredSizeLayoutable.IsMeasureValidLayoutable.IsArrangeValidLayoutable.UseLayoutRoundingLayoutable.EffectiveViewportChangedLayoutable.LayoutUpdatedVisual.BoundsPropertyVisual.ClipToBoundsPropertyVisual.ClipPropertyVisual.IsVisiblePropertyVisual.OpacityPropertyVisual.OpacityMaskPropertyVisual.EffectPropertyVisual.HasMirrorTransformPropertyVisual.RenderTransformPropertyVisual.RenderTransformOriginPropertyVisual.FlowDirectionPropertyVisual.VisualParentPropertyVisual.ZIndexPropertyVisual.GetFlowDirection(Visual)Visual.SetFlowDirection(Visual, FlowDirection)Visual.InvalidateVisual()Visual.Render(DrawingContext)Visual.AffectsRender<T>(params AvaloniaProperty[])Visual.OnAttachedToVisualTree(VisualTreeAttachmentEventArgs)Visual.InvalidateMirrorTransform()Visual.BoundsVisual.ClipToBoundsVisual.ClipVisual.IsEffectivelyVisibleVisual.IsVisibleVisual.OpacityVisual.OpacityMaskVisual.EffectVisual.HasMirrorTransformVisual.RenderTransformVisual.RenderTransformOriginVisual.FlowDirectionVisual.ZIndexVisual.VisualChildrenVisual.VisualRootVisual.BypassFlowDirectionPoliciesVisual.AttachedToVisualTreeVisual.DetachedFromVisualTreeStyledElement.DataContextPropertyStyledElement.NamePropertyStyledElement.ParentPropertyStyledElement.TemplatedParentPropertyStyledElement.ThemePropertyStyledElement.BeginInit()StyledElement.EndInit()StyledElement.ApplyStyling()StyledElement.InitializeIfNeeded()StyledElement.OnDataContextBeginUpdate()StyledElement.OnDataContextEndUpdate()StyledElement.OnInitialized()StyledElement.NameStyledElement.ClassesStyledElement.DataContextStyledElement.IsInitializedStyledElement.StylesStyledElement.StyleKeyStyledElement.ResourcesStyledElement.TemplatedParentStyledElement.ThemeStyledElement.LogicalChildrenStyledElement.PseudoClassesStyledElement.StyleKeyOverrideStyledElement.ParentStyledElement.ActualThemeVariantStyledElement.AttachedToLogicalTreeStyledElement.DetachedFromLogicalTreeStyledElement.DataContextChangedStyledElement.InitializedStyledElement.ResourcesChangedStyledElement.ActualThemeVariantChangedAnimatable.TransitionsPropertyAnimatable.OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs)Animatable.TransitionsAvaloniaObject.CheckAccess()AvaloniaObject.VerifyAccess()AvaloniaObject.ClearValue(AvaloniaProperty)AvaloniaObject.ClearValue<T>(AvaloniaProperty<T>)AvaloniaObject.ClearValue<T>(StyledProperty<T>)AvaloniaObject.ClearValue<T>(DirectPropertyBase<T>)AvaloniaObject.GetHashCode()AvaloniaObject.GetValue(AvaloniaProperty)AvaloniaObject.GetValue<T>(StyledProperty<T>)AvaloniaObject.GetValue<T>(DirectPropertyBase<T>)AvaloniaObject.GetBaseValue<T>(StyledProperty<T>)AvaloniaObject.IsAnimating(AvaloniaProperty)AvaloniaObject.IsSet(AvaloniaProperty)AvaloniaObject.SetValue<T>(StyledProperty<T>, T, BindingPriority)AvaloniaObject.SetValue<T>(DirectPropertyBase<T>, T)AvaloniaObject.SetCurrentValue<T>(StyledProperty<T>, T)AvaloniaObject.Bind(AvaloniaProperty, IBinding)AvaloniaObject.CoerceValue(AvaloniaProperty)AvaloniaObject.RaisePropertyChanged<T>(DirectPropertyBase<T>, T, T)AvaloniaObject.SetAndRaise<T>(DirectPropertyBase<T>, ref T, T)AvaloniaObject.InheritanceParentAvaloniaObject.this[AvaloniaProperty]AvaloniaObject.this[IndexerDescriptor]AvaloniaObject.PropertyChanged
Constructors
LiveScopeControl()
Create a new charting control
public LiveScopeControl()
Fields
ActiveSeriesIdProperty
public static readonly StyledProperty<uint> ActiveSeriesIdProperty
Field Value
- StyledProperty<uint>
ActiveSeriesIndexProperty
public static readonly StyledProperty<int> ActiveSeriesIndexProperty
Field Value
- StyledProperty<int>
BackgroundColorProperty
public static readonly StyledProperty<ISolidColorBrush> BackgroundColorProperty
Field Value
- StyledProperty<ISolidColorBrush>
CursorColorProperty
public static readonly StyledProperty<ISolidColorBrush> CursorColorProperty
Field Value
- StyledProperty<ISolidColorBrush>
CursorValueProperty
public static readonly StyledProperty<double> CursorValueProperty
Field Value
- StyledProperty<double>
DefaultSeriesColorProperty
public static readonly StyledProperty<ISolidColorBrush> DefaultSeriesColorProperty
Field Value
- StyledProperty<ISolidColorBrush>
EnableCursorLockProperty
public static readonly StyledProperty<bool> EnableCursorLockProperty
Field Value
- StyledProperty<bool>
GridColorProperty
public static readonly StyledProperty<ISolidColorBrush> GridColorProperty
Field Value
- StyledProperty<ISolidColorBrush>
MaxCursorValueProperty
public static readonly StyledProperty<double> MaxCursorValueProperty
Field Value
- StyledProperty<double>
SeriesContentProperty
public static readonly StyledProperty<SeriesCollection> SeriesContentProperty
Field Value
- StyledProperty<SeriesCollection>
SeriesLayoutProperty
public static readonly StyledProperty<SeriesLayoutTypes> SeriesLayoutProperty
Field Value
- StyledProperty<SeriesLayoutTypes>
SeriesProperty
public static readonly StyledProperty<ReadOnlyCollection<Series>> SeriesProperty
Field Value
- StyledProperty<ReadOnlyCollection<Series>>
TextColorProperty
public static readonly StyledProperty<ISolidColorBrush> TextColorProperty
Field Value
- StyledProperty<ISolidColorBrush>
TimeLengthProperty
public static readonly StyledProperty<double> TimeLengthProperty
Field Value
- StyledProperty<double>
UpdateDataProperty
public static readonly StyledProperty<DataUpdateTypes> UpdateDataProperty
Field Value
- StyledProperty<DataUpdateTypes>
XAxisColorProperty
public static readonly StyledProperty<ISolidColorBrush> XAxisColorProperty
Field Value
- StyledProperty<ISolidColorBrush>
XMaxProperty
public static readonly StyledProperty<double> XMaxProperty
Field Value
- StyledProperty<double>
XMinProperty
public static readonly StyledProperty<double> XMinProperty
Field Value
- StyledProperty<double>
YAxisColorProperty
public static readonly StyledProperty<ISolidColorBrush> YAxisColorProperty
Field Value
- StyledProperty<ISolidColorBrush>
YMaxProperty
public static readonly StyledProperty<double> YMaxProperty
Field Value
- StyledProperty<double>
YMinProperty
public static readonly StyledProperty<double> YMinProperty
Field Value
- StyledProperty<double>
Properties
ActiveSeriesId
Unique identifier of the currently active series
public uint ActiveSeriesId { get; set; }
Property Value
ActiveSeriesIndex
public int ActiveSeriesIndex { get; }
Property Value
BackgroundColor
Background color
public ISolidColorBrush BackgroundColor { get; set; }
Property Value
- ISolidColorBrush
Colors
View settings
public ColorInfo Colors { get; }
Property Value
CursorColor
Cursor color
public ISolidColorBrush CursorColor { get; set; }
Property Value
- ISolidColorBrush
CursorValue
public double CursorValue { get; set; }
Property Value
DefaultSeriesColor
X-axis color
public ISolidColorBrush DefaultSeriesColor { get; set; }
Property Value
- ISolidColorBrush
EnableCursorLock
public bool EnableCursorLock { get; set; }
Property Value
GridColor
Grid color
public ISolidColorBrush GridColor { get; set; }
Property Value
- ISolidColorBrush
this[uint]
public Series this[uint index] { get; }
Parameters
index
uint
Property Value
MaxCursorValue
public double MaxCursorValue { get; set; }
Property Value
Series
Series already added to the chart
public ReadOnlyCollection<Series> Series { get; }
Property Value
Remarks
Use this property to modify properties of existing series
SeriesLayout
The manner in which series are laid out visually on a given chart
See SeriesLayoutTypes for more information
public SeriesLayoutTypes SeriesLayout { get; set; }
Property Value
TextColor
Text color
public ISolidColorBrush TextColor { get; set; }
Property Value
- ISolidColorBrush
TimeLength
Length of time visible on the chart (seconds)
public double TimeLength { get; set; }
Property Value
UpdateData
Determines how incoming data is added to the buffer
public DataUpdateTypes UpdateData { get; set; }
Property Value
XAxisColor
X-axis color
public ISolidColorBrush XAxisColor { get; set; }
Property Value
- ISolidColorBrush
XMax
X-axis maximum
public double XMax { get; set; }
Property Value
XMin
X-axis minimum
public double XMin { get; set; }
Property Value
YAxisColor
Y-axis color
public ISolidColorBrush YAxisColor { get; set; }
Property Value
- ISolidColorBrush
YMax
Y-axis maximum
public double YMax { get; set; }
Property Value
YMin
Y-axis minimum
public double YMin { get; set; }
Property Value
Methods
AddSeries(IDataCapture, SeriesColor?, double?)
Start a new recording series using the specified capture implementation
public Series AddSeries(IDataCapture Capture, SeriesColor? Color = null, double? LineWidth = null)
Parameters
Capture
IDataCaptureData capture implementation. Captures data and relays it to the chart.
Color
SeriesColorDesired series color
LineWidth
double?Desired series line width
Returns
- Series
Series instance attached to a chart
EnableAutoscale(uint?, bool)
Enable autoscale for the specified series
public void EnableAutoscale(uint? index = null, bool value = true)
Parameters
index
uint?Series index - defaults to currently active series
value
boolTrue to enable autoscale, False to disable autoscale
EnableEvents(uint?, bool)
Enable digital triggering for the specified series
public void EnableEvents(uint? index = null, bool value = true)
Parameters
index
uint?Series index - defaults to currently active series
value
boolTrue to enable triggering, False to disable triggering
GetSeriesData(uint?)
Retrieve sample data for the specified series
public ReadOnlySpan<Sample> GetSeriesData(uint? index = null)
Parameters
index
uint?(Optional) Series index (defaults to active series)
Returns
- ReadOnlySpan<Sample>
Sample data buffer
InitializeComponent(bool)
Wires up the controls and optionally loads XAML markup and attaches dev tools (if Avalonia.Diagnostics package is referenced).
public void InitializeComponent(bool loadXaml = true)
Parameters
loadXaml
boolShould the XAML be loaded into the component.
OnDetachedFromVisualTree(VisualTreeAttachmentEventArgs)
protected override void OnDetachedFromVisualTree(VisualTreeAttachmentEventArgs e)
Parameters
e
VisualTreeAttachmentEventArgs
PauseSeries(uint?)
Pause screen updates for the specified series
public void PauseSeries(uint? index = null)
Parameters
index
uint?Series index - defaults to currently active series
RemoveSeries(uint?)
Remove the series associated with the specified index
public void RemoveSeries(uint? index = null)
Parameters
index
uint?Series index - defaults to currently active series
ResumeSeries(uint?)
Resume screen updates for the specified series
public void ResumeSeries(uint? index = null)
Parameters
index
uint?Series index - defaults to currently active series
SaveSeriesDataAs(string, uint?)
Retrieve sample data for the specified series and save it to disk
public void SaveSeriesDataAs(string path, uint? index = null)