Readded Carriage - Moved Focus on enter/escape to Add Button - altered some background and foreground colors
This commit is contained in:
+2
-1
@@ -2,6 +2,7 @@ using System;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Input;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Interactivity;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
@@ -13,6 +14,7 @@ public class ViewModel : ObservableObject
|
||||
private double _windowWidth = 200;
|
||||
public static double _fontSize = 20;
|
||||
private double _noteWidth;
|
||||
public object? LastFocusedNote;
|
||||
|
||||
public ObservableCollection<Note> Notes { get; set; } = new ObservableCollection<Note>();
|
||||
public ICommand AddButtonPressedCommand { get; }
|
||||
@@ -42,7 +44,6 @@ public class ViewModel : ObservableObject
|
||||
|
||||
private void AddButtonPressedCommandEvent(object? sender)
|
||||
{
|
||||
// TODO: generate new Note
|
||||
AddNote();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user