InterfaceSettings.cs 851 B

123456789101112131415161718192021222324252627
  1. using Avalonia.Controls;
  2. using Avalonia.Media;
  3. using Avalonia.Styling;
  4. using CommunityToolkit.Mvvm.ComponentModel;
  5. using CommunityToolkit.Mvvm.DependencyInjection;
  6. using EntranseTesting.ViewModels;
  7. using System;
  8. using System.Collections.Generic;
  9. using System.ComponentModel;
  10. using System.Linq;
  11. using System.Text;
  12. using System.Threading.Tasks;
  13. namespace EntranseTesting.Models
  14. {
  15. public partial class InterfaceSettings: ObservableObject
  16. {
  17. [ObservableProperty]
  18. private List<FontFamily> fonts = new List<FontFamily>() { "Arial", "Comic Sans MS", "Copperplate Gothic","Gabriola", "Georgia", "Impact", "Times New Roman" };
  19. [ObservableProperty]
  20. private FontFamily selectedFont = "Comic Sans MS";
  21. [ObservableProperty]
  22. private int myFontSize = 16;
  23. public static int take = 0;
  24. }
  25. }