Exemplo n.º 1
0
        protected virtual void ViewCreated(ViewCreatedEvent viewCreatedEvent)
        {
            var view = viewCreatedEvent.View;

            if (view.ViewModelObject == null && view.BindOnStart)
            {
                var viewModel = FetchViewModel(viewCreatedEvent.View);
            }
            Views.Add(view);
        }
Exemplo n.º 2
0
 public override void KernelLoaded()
 {
     base.KernelLoaded();
     if (this.InjectView)
     {
         uFrameKernel.Container.Inject(this);
     }
     this.Publish(CreateEventData ?? (CreateEventData = new ViewCreatedEvent()
     {
         IsInstantiated = false,
         Scene = ParentScene,
         View = this
     }));
 }
Exemplo n.º 3
0
        protected virtual void ViewCreated(ViewCreatedEvent viewCreatedEvent)
        {

            var view = viewCreatedEvent.View;
            if (view.ViewModelObject == null && view.BindOnStart)
            {
                var viewModel = FetchViewModel(viewCreatedEvent.View);

            }
            Views.Add(view);
        }