PropertyPanelContentEditViewModel.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using PDF_Master.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_Master.ViewModels.PropertyPanel
  10. {
  11. public class PropertyPanelContentEditViewModel : BindableBase, INavigationAware
  12. {
  13. private string _annotPanelType = "HighLight";
  14. public string AnnotPanelType
  15. {
  16. get { return _annotPanelType; }
  17. set
  18. {
  19. SetProperty(ref _annotPanelType, value);
  20. }
  21. }
  22. private PanelType _propertyPanelType;
  23. public PanelType PropertyPanelType
  24. {
  25. get { return _propertyPanelType; }
  26. set
  27. {
  28. SetProperty(ref _propertyPanelType, value);
  29. }
  30. }
  31. private IRegionManager regions { get; set; }
  32. private string propertyPanelRegionNmae;
  33. public string PropertyPanelRegionNmae
  34. {
  35. get { return propertyPanelRegionNmae; }
  36. set
  37. {
  38. SetProperty(ref propertyPanelRegionNmae, value);
  39. }
  40. }
  41. public PropertyPanelContentEditViewModel(IRegionManager regionManager)
  42. {
  43. regions = regionManager;
  44. PropertyPanelRegionNmae = Guid.NewGuid().ToString();
  45. }
  46. public void OnNavigatedTo(NavigationContext navigationContext)
  47. {
  48. }
  49. public bool IsNavigationTarget(NavigationContext navigationContext)
  50. {
  51. return true;
  52. }
  53. public void OnNavigatedFrom(NavigationContext navigationContext)
  54. {
  55. }
  56. }
  57. }