Class SlidingWindowViewModel

ViewModel for the SlidingWindow card.

Inheritance
SlidingWindowViewModel
Namespace: MOSAIC.ViewModels.SignalProcessing
Assembly: MOSAIC.dll
Syntax
public class SlidingWindowViewModel : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging

Constructors

SlidingWindowViewModel(SlidingWindow)

Declaration
public SlidingWindowViewModel(SlidingWindow slidingWindow)
Parameters
Type Name Description
SlidingWindow slidingWindow

Fields

_bufferSizeText

Buffer size as editable string with validation.

Declaration
[ObservableProperty]
private string _bufferSizeText
Field Value
Type Description
string

_errorMessage

Error message for invalid input.

Declaration
[ObservableProperty]
private string? _errorMessage
Field Value
Type Description
string

_strideText

Stride as editable string with validation.

Declaration
[ObservableProperty]
private string _strideText
Field Value
Type Description
string

Properties

BufferSizeText

Buffer size as editable string with validation.

Declaration
[ExcludeFromCodeCoverage]
public string BufferSizeText { get; set; }
Property Value
Type Description
string

ErrorMessage

Error message for invalid input.

Declaration
[ExcludeFromCodeCoverage]
public string? ErrorMessage { get; set; }
Property Value
Type Description
string

SlidingWindow

Declaration
public SlidingWindow SlidingWindow { get; }
Property Value
Type Description
SlidingWindow

StrideText

Stride as editable string with validation.

Declaration
[ExcludeFromCodeCoverage]
public string StrideText { get; set; }
Property Value
Type Description
string

WindowTypes

Available window types for the ComboBox.

Declaration
public SlidingWindow.WindowType[] WindowTypes { get; }
Property Value
Type Description
WindowType[]

Methods

OnBufferSizeTextChanged(string)

Executes the logic for when BufferSizeText just changed.

Declaration
private void OnBufferSizeTextChanged(string value)
Parameters
Type Name Description
string value

The new property value that was set.

Remarks

This method is invoked right after the value of BufferSizeText is changed.

OnBufferSizeTextChanged(string?, string)

Executes the logic for when BufferSizeText just changed.

Declaration
private void OnBufferSizeTextChanged(string? oldValue, string newValue)
Parameters
Type Name Description
string oldValue

The previous property value that was replaced.

string newValue

The new property value that was set.

Remarks

This method is invoked right after the value of BufferSizeText is changed.

OnBufferSizeTextChanging(string)

Executes the logic for when BufferSizeText is changing.

Declaration
private void OnBufferSizeTextChanging(string value)
Parameters
Type Name Description
string value

The new property value being set.

Remarks

This method is invoked right before the value of BufferSizeText is changed.

OnBufferSizeTextChanging(string?, string)

Executes the logic for when BufferSizeText is changing.

Declaration
private void OnBufferSizeTextChanging(string? oldValue, string newValue)
Parameters
Type Name Description
string oldValue

The previous property value that is being replaced.

string newValue

The new property value being set.

Remarks

This method is invoked right before the value of BufferSizeText is changed.

OnErrorMessageChanged(string?)

Executes the logic for when ErrorMessage just changed.

Declaration
private void OnErrorMessageChanged(string? value)
Parameters
Type Name Description
string value

The new property value that was set.

Remarks

This method is invoked right after the value of ErrorMessage is changed.

OnErrorMessageChanged(string?, string?)

Executes the logic for when ErrorMessage just changed.

Declaration
private void OnErrorMessageChanged(string? oldValue, string? newValue)
Parameters
Type Name Description
string oldValue

The previous property value that was replaced.

string newValue

The new property value that was set.

Remarks

This method is invoked right after the value of ErrorMessage is changed.

OnErrorMessageChanging(string?)

Executes the logic for when ErrorMessage is changing.

Declaration
private void OnErrorMessageChanging(string? value)
Parameters
Type Name Description
string value

The new property value being set.

Remarks

This method is invoked right before the value of ErrorMessage is changed.

OnErrorMessageChanging(string?, string?)

Executes the logic for when ErrorMessage is changing.

Declaration
private void OnErrorMessageChanging(string? oldValue, string? newValue)
Parameters
Type Name Description
string oldValue

The previous property value that is being replaced.

string newValue

The new property value being set.

Remarks

This method is invoked right before the value of ErrorMessage is changed.

OnStrideTextChanged(string)

Executes the logic for when StrideText just changed.

Declaration
private void OnStrideTextChanged(string value)
Parameters
Type Name Description
string value

The new property value that was set.

Remarks

This method is invoked right after the value of StrideText is changed.

OnStrideTextChanged(string?, string)

Executes the logic for when StrideText just changed.

Declaration
private void OnStrideTextChanged(string? oldValue, string newValue)
Parameters
Type Name Description
string oldValue

The previous property value that was replaced.

string newValue

The new property value that was set.

Remarks

This method is invoked right after the value of StrideText is changed.

OnStrideTextChanging(string)

Executes the logic for when StrideText is changing.

Declaration
private void OnStrideTextChanging(string value)
Parameters
Type Name Description
string value

The new property value being set.

Remarks

This method is invoked right before the value of StrideText is changed.

OnStrideTextChanging(string?, string)

Executes the logic for when StrideText is changing.

Declaration
private void OnStrideTextChanging(string? oldValue, string newValue)
Parameters
Type Name Description
string oldValue

The previous property value that is being replaced.

string newValue

The new property value being set.

Remarks

This method is invoked right before the value of StrideText is changed.

Implements

INotifyPropertyChanged
INotifyPropertyChanging

Search documentation

Start typing to search the documentation.