FormBaseVM.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. using Prism.Mvvm;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows.Media;
  8. namespace PDF_Office.ViewModels.Form
  9. {
  10. public class FormBaseVM : BindableBase
  11. {
  12. #region 一般
  13. //提示
  14. private string _toolTipStr;
  15. public string ToolTipStr
  16. {
  17. get { return _toolTipStr; }
  18. set { SetProperty(ref _toolTipStr, value); }
  19. }
  20. //名称
  21. private string _nameStr;
  22. public string NameStr
  23. {
  24. get { return _nameStr; }
  25. set { SetProperty(ref _nameStr, value); }
  26. }
  27. //只读
  28. public bool _isReadOnly = false;
  29. public bool IsReadOnly
  30. {
  31. get { return _isReadOnly; }
  32. set { SetProperty(ref _isReadOnly, value); }
  33. }
  34. //必填
  35. public bool _isRequiredField = false;
  36. public bool IsRequiredField
  37. {
  38. get { return _isRequiredField; }
  39. set { SetProperty(ref _isRequiredField, value); }
  40. }
  41. //锁定
  42. public bool _isLocked = false;
  43. public bool IsLocked
  44. {
  45. get { return _isLocked; }
  46. set { SetProperty(ref _isLocked, value); }
  47. }
  48. #endregion
  49. #region 外观
  50. //边框大小
  51. private double _borderThiness = 0;
  52. private double BorderThiness
  53. {
  54. get { return _borderThiness; }
  55. set { SetProperty(ref _borderThiness, value); }
  56. }
  57. //是否为实线条
  58. private bool _isSolid = true;
  59. private bool IsSolid
  60. {
  61. get { return _isSolid; }
  62. set { SetProperty(ref _isSolid, value); }
  63. }
  64. //宽大小
  65. private double _widthSize = 150;
  66. private double WidthSize
  67. {
  68. get { return _widthSize; }
  69. set { SetProperty(ref _widthSize, value); }
  70. }
  71. //高大小
  72. private double _heightSize = 22;
  73. private double HeightSize
  74. {
  75. get { return _heightSize; }
  76. set { SetProperty(ref _heightSize, value); }
  77. }
  78. //边框颜色
  79. private Color _borderColor = Colors.Transparent;
  80. private Color BorderColor
  81. {
  82. get { return _borderColor; }
  83. set { SetProperty(ref _borderColor, value); }
  84. }
  85. //内容颜色
  86. private Color _contentColor = Colors.Transparent;
  87. private Color ContentColo
  88. {
  89. get { return _contentColor; }
  90. set { SetProperty(ref _contentColor, value); }
  91. }
  92. #endregion
  93. }
  94. }