Changeset 11926 for extensions/PiwigoLib/PiwigoWpf/DTO/PwgCategoryWPF.cs
- Timestamp:
- Aug 9, 2011, 6:08:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/PiwigoWpf/DTO/PwgCategoryWPF.cs
r7150 r11926 75 75 PropertyChanged(this, new PropertyChangedEventArgs(info)); 76 76 } 77 78 #region Presentation Members 79 80 #region IsExpanded 81 82 /// <summary> 83 /// Gets/sets whether the TreeViewItem 84 /// associated with this object is expanded. 85 /// </summary> 86 private bool _isExpanded = false; 87 public bool IsExpanded 88 { 89 get { return _isExpanded; } 90 set 91 { 92 if (value != _isExpanded) 93 { 94 _isExpanded = value; 95 this.OnPropertyChanged("IsExpanded"); 96 } 97 98 // Expand all the way up to the root. 99 if (_isExpanded && _parent != null) 100 _parent.IsExpanded = true; 101 } 102 } 103 104 #endregion // IsExpanded 105 106 #region IsSelected 107 108 /// <summary> 109 /// Gets/sets whether the TreeViewItem 110 /// associated with this object is selected. 111 /// </summary> 112 private bool _isSelected = false; 113 public bool IsSelected 114 { 115 get { return _isSelected; } 116 set 117 { 118 if (value != _isSelected) 119 { 120 _isSelected = value; 121 this.OnPropertyChanged("IsSelected"); 122 } 123 } 124 } 125 126 #endregion // IsSelected 127 128 #region Parent 129 private PwgCategoryWPF _parent = null; 130 public PwgCategoryWPF Parent 131 { 132 get { return _parent; } 133 } 134 135 #endregion // Parent 136 137 #endregion // Presentation Members 77 138 } 78 139 }
Note: See TracChangeset
for help on using the changeset viewer.