|
|
|
@ -267,12 +267,26 @@ namespace ICSharpCode.TreeView
@@ -267,12 +267,26 @@ namespace ICSharpCode.TreeView
|
|
|
|
|
lazyLoading = value; |
|
|
|
|
if (lazyLoading) { |
|
|
|
|
IsExpanded = false; |
|
|
|
|
if (canExpandRecursively) { |
|
|
|
|
canExpandRecursively = false; |
|
|
|
|
RaisePropertyChanged("CanExpandRecursively"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
RaisePropertyChanged("LazyLoading"); |
|
|
|
|
RaisePropertyChanged("ShowExpander"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool canExpandRecursively = true; |
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets whether this node can be expanded recursively.
|
|
|
|
|
/// If not overridden, this property returns false if the node is using lazy-loading, and true otherwise.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public virtual bool CanExpandRecursively { |
|
|
|
|
get { return canExpandRecursively; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public virtual bool ShowIcon |
|
|
|
|
{ |
|
|
|
|
get { return Icon != null; } |
|
|
|
|