PropertyPanelContentViewModel.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using PDF_Office.DataConvert;
  2. using Prism.Mvvm;
  3. using Prism.Regions;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace PDF_Office.ViewModels.PropertyPanel
  10. {
  11. public enum PanelType
  12. {
  13. AnnotType,
  14. WaterMarkType,
  15. }
  16. public class PropertyPanelContentViewModel : BindableBase, INavigationAware
  17. {
  18. private string _annotPanelType = "HighLight";
  19. public string AnnotPanelType
  20. {
  21. get { return _annotPanelType; }
  22. set {
  23. SetProperty(ref _annotPanelType, value);
  24. }
  25. }
  26. private PanelType _propertyPanelType;
  27. public PanelType PropertyPanelType
  28. {
  29. get { return _propertyPanelType; }
  30. set
  31. {
  32. SetProperty(ref _propertyPanelType, value);
  33. }
  34. }
  35. private IRegionManager regions { get; set; }
  36. private string propertyPanelRegionNmae;
  37. public string PropertyPanelRegionNmae
  38. {
  39. get { return propertyPanelRegionNmae; }
  40. set
  41. {
  42. SetProperty(ref propertyPanelRegionNmae, value);
  43. }
  44. }
  45. public PropertyPanelContentViewModel(IRegionManager regionManager)
  46. {
  47. regions = regionManager;
  48. PropertyPanelRegionNmae = Guid.NewGuid().ToString();
  49. }
  50. public void OnNavigatedTo(NavigationContext navigationContext)
  51. {
  52. }
  53. public bool IsNavigationTarget(NavigationContext navigationContext)
  54. {
  55. return true;
  56. }
  57. public void OnNavigatedFrom(NavigationContext navigationContext)
  58. {
  59. }
  60. }
  61. }