protected NavigationNodeViewModel(NavigationNodeViewModel parent, ViewModelBase item, NavigationNodeViewModel lazyLoadPlaceholder) { this.Parent = parent; this.Item = item; this.lazyLoadPlaceholder = lazyLoadPlaceholder; if (lazyLoadPlaceholder != null) { // A placeholder node was provided by the caller, so this is a lazy loaded node this.Children.Add(lazyLoadPlaceholder); } this.IsExpanderVisible = true; }
protected NavigationNodeViewModel(NavigationNodeViewModel parent, ViewModelBase item) : this(parent, item, null) { }