终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

40 lines
2.1 KiB

  1. using BPASmartClient.CustomResource.UserControls.Enum;
  2. using System;
  3. using System.Globalization;
  4. using System.Windows;
  5. using System.Windows.Controls;
  6. using System.Windows.Controls.Primitives;
  7. using System.Windows.Data;
  8. using System.Windows.Media;
  9. using System.Windows.Threading;
  10. namespace BPASmartClient.CustomResource.UserControls.Model
  11. {
  12. public class ToastOptions
  13. {
  14. public double ToastWidth { get; set; }
  15. public double ToastHeight { get; set; }
  16. public double TextWidth { get; set; }
  17. public int Time { get; set; } = 2000;
  18. public ToastIcons Icon { get; set; } = ToastIcons.None;
  19. public ToastLocation Location { get; set; } = ToastLocation.Default;
  20. public Brush Foreground { get; set; } = (Brush)new BrushConverter().ConvertFromString("#031D38");
  21. public Brush IconForeground { get; set; } = (Brush)new BrushConverter().ConvertFromString("#00D91A");
  22. public FontStyle FontStyle { get; set; } = SystemFonts.MessageFontStyle;
  23. public FontStretch FontStretch { get; set; } = FontStretches.Normal;
  24. public double FontSize { get; set; } = SystemFonts.MessageFontSize;
  25. public FontFamily FontFamily { get; set; } = SystemFonts.MessageFontFamily;
  26. public FontWeight FontWeight { get; set; } = SystemFonts.MenuFontWeight;
  27. public double IconSize { get; set; } = 26;
  28. public CornerRadius CornerRadius { get; set; } = new CornerRadius(5);
  29. public Brush BorderBrush { get; set; } = (Brush)new BrushConverter().ConvertFromString("#CECECE");
  30. public Thickness BorderThickness { get; set; } = new Thickness(0);
  31. public Brush Background { get; set; } = (Brush)new BrushConverter().ConvertFromString("#FFFFFF");
  32. public HorizontalAlignment HorizontalContentAlignment { get; set; } = HorizontalAlignment.Center;
  33. public VerticalAlignment VerticalContentAlignment { get; set; } = VerticalAlignment.Center;
  34. public EventHandler<EventArgs> Closed { get; internal set; }
  35. public EventHandler<EventArgs> Click { get; internal set; }
  36. public Thickness ToastMargin { get; set; } = new Thickness(2);
  37. }
  38. }