ISukiDialog.cs 629 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.ObjectModel;
  3. using Avalonia.Media;
  4. namespace SukiUI.Dialogs
  5. {
  6. public interface ISukiDialog
  7. {
  8. ISukiDialogManager? Manager { get; set; }
  9. object? ViewModel { get; set; }
  10. string? Title { get; set; }
  11. object? Content { get; set; }
  12. object? Icon { get; set; }
  13. IBrush? IconColor { get; set; }
  14. ObservableCollection<object> ActionButtons { get; }
  15. Action<ISukiDialog>? OnDismissed { get; set; }
  16. bool CanDismissWithBackgroundClick { get; set; }
  17. bool ShowCardBackground { get; set; }
  18. void Dismiss();
  19. }
  20. }