Skip to content

Demo (Avalonia): Multi-Axis Lock#1215

Merged
swharden merged 2 commits intoScottPlot:patch-demo-1179from
bclehmann:patch-demo-1179-ava
Aug 21, 2021
Merged

Demo (Avalonia): Multi-Axis Lock#1215
swharden merged 2 commits intoScottPlot:patch-demo-1179from
bclehmann:patch-demo-1179-ava

Conversation

@bclehmann
Copy link
Member

@bclehmann bclehmann commented Aug 20, 2021

New Contributors:
please review CONTRIBUTING.md

Purpose:
#1210

New Functionality:
Adds multi-axis lock demo for Avalonia. There are some bigger changes from the WPF version as Avalonians normally do MVVM with observables, often with INotifyPropertyChanged, not event handlers. This is because event handlers can be fired before the data context is updated. So generally event handlers are used only for code-behind where you're setting the value in the handler. I think most Avalonia users use something like ReactiveUI so their viewmodels are less verbose.

@bclehmann bclehmann mentioned this pull request Aug 20, 2021
@swharden
Copy link
Member

This looks great @bclehmann, thanks! It's great to see an example of "proper" MVVM pattern in this demo

@swharden swharden merged commit 029c3b7 into ScottPlot:patch-demo-1179 Aug 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants