ExpanderColumn.cs 712 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. namespace RecipeEditorLib.DGExtension.CustomColumn
  9. {
  10. public class ExpanderColumn : EditorDataGridTemplateColumnBase
  11. {
  12. public static DependencyProperty IsExpanderProperty = DependencyProperty.Register("IsExpanded", typeof(bool), typeof(ExpanderColumn), new PropertyMetadata(true));
  13. public bool IsExpanded
  14. {
  15. get { return (bool)GetValue(IsExpanderProperty); }
  16. set
  17. {
  18. SetValue(IsExpanderProperty, value);
  19. }
  20. }
  21. }
  22. }