refactor: 将Framework库和RT、UI放在同一个解决方案中。
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Windows;
|
||||
|
||||
namespace MECF.Framework.UI.Client.RecipeEditorLib.DGExtension.CustomColumn
|
||||
{
|
||||
public class ExpanderColumn : EditorDataGridTemplateColumnBase
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
public ExpanderColumn()
|
||||
{
|
||||
IsExpander = true;
|
||||
ChildColumns = new List<EditorDataGridTemplateColumnBase>();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
public static DependencyProperty IsExpanderProperty = DependencyProperty.Register("IsExpanded", typeof(bool),
|
||||
typeof(ExpanderColumn), new PropertyMetadata(true));
|
||||
|
||||
public bool IsExpanded
|
||||
{
|
||||
get => (bool)GetValue(IsExpanderProperty);
|
||||
set => SetValue(IsExpanderProperty, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回当前组的所有列。
|
||||
/// </summary>
|
||||
public List<EditorDataGridTemplateColumnBase> ChildColumns { get; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user