36 lines
1 KiB
C#
36 lines
1 KiB
C#
namespace JD.AssetBrowser.Model
|
|
{
|
|
/// <summary>
|
|
/// Provides a common implementation of a tree node model that supports checking.
|
|
/// </summary>
|
|
public class CheckableTreeNodeModel : TreeNodeModel
|
|
{
|
|
private bool _isCheckable;
|
|
private bool? _isChecked = false;
|
|
|
|
/// <summary>
|
|
/// Gets or sets whether the node is checkable.
|
|
/// </summary>
|
|
/// <value>
|
|
/// <c>true</c> if the node is checkable; otherwise, <c>false</c>.
|
|
/// </value>
|
|
public bool IsCheckable
|
|
{
|
|
get { return _isCheckable; }
|
|
set { SetProperty(ref _isCheckable, value); }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets whether the node is checked.
|
|
/// </summary>
|
|
/// <value>
|
|
/// <c>true</c> if the node is checked; otherwise, <c>false</c>.
|
|
/// </value>
|
|
public bool? IsChecked
|
|
{
|
|
get { return _isChecked; }
|
|
set { SetProperty(ref _isChecked, value); }
|
|
}
|
|
|
|
}
|
|
}
|