Desktop Application for tracking running data sourced from GPS watch.
I have been using SportTracks desktop client to manage all my running data obtained from Garmin GPS watches. Unfortunately this has changed to an online subscription model. I want to be able to keep using the data obtained over several years and add to it with new runs.
This is a good opportunity to experiment with using the Avalonia UI framework as well as the latest .NET versions.
Example for SettingsWindow
Window layout
Commands. e.g. Button Clicks
Model for data used in settings window
Add the following to MainWindowViewModel.cs
public ICommand SettingsCommand { get; }
public Interaction<SettingsWindowViewModel, Models.SettingsData?> ShowDialog { get; }
public MainWindowViewModel()
{
ShowDialog = new Interaction<SettingsWindowViewModel, Models.SettingsData?>();
SettingsCommand = ReactiveCommand.Create(async () => await OpenSettings());
// Remaining constructor logic
}
public async Task OpenSettings()
{
var settings = new SettingsWindowViewModel();
await ShowDialog.Handle(settings);
}