Made minor changes in behavior

This commit is contained in:
Ano-sys
2025-02-19 02:16:56 +01:00
parent 6971b05226
commit d4d7006dcb
3 changed files with 38 additions and 19 deletions
+5 -1
View File
@@ -1,4 +1,5 @@
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using Avalonia.Input;
using Avalonia.Media;
using CommunityToolkit.Mvvm.ComponentModel;
@@ -9,6 +10,9 @@ namespace SimpleDraw.ViewModels;
public class ViewModelBase : ObservableObject
{
public int WindowWidth { get; set; } = 1200;
public int WindowHeight { get; set; } = 800;
public ObservableCollection<ColorPickerButton>? ColorPalette { get; set; }
public IRelayCommand<PointerPressedEventArgs>? CanvasPointerPressedCommand { get; set; }
public IRelayCommand<PointerEventArgs>? CanvasPointerMovedCommand { get; set; }
@@ -26,7 +30,7 @@ public class ViewModelBase : ObservableObject
get => _brush;
set => SetProperty(ref _brush, value);
}
public double BrushThickness
{
get => _brushThickness;