Exemple #1
0
        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;
        }
Exemple #2
0
 protected NavigationNodeViewModel(NavigationNodeViewModel parent, ViewModelBase item)
     : this(parent, item, null)
 {
 }