Ejemplo n.º 1
0
        public NavigationBindingFactory <TNavigationItem> For <TParent>(Action <NavigationBindingBuilder <TNavigationItem, TParent> > action)
            where TParent : class
        {
            NavigationBinding <TNavigationItem, TParent>        item    = new NavigationBinding <TNavigationItem, TParent>();
            NavigationBindingBuilder <TNavigationItem, TParent> builder = new NavigationBindingBuilder <TNavigationItem, TParent>(item);

            container.Add(item);

            action(builder);

            return(this);
        }
 public NavigationBindingBuilder(NavigationBinding <TNavigationItem, TParent> item)
 {
     this.item = item;
 }