Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

Commented Issue: OnViewReady not being raised on Pivot item? [292]

$
0
0
I have a conductor that conducts pivot items, so I add items like this:

```
protected override void OnInitialize() {
base.OnInitialize();

Items.Add(_createItemFactory());

ActivateItem(Items[0]);
}
```

Then I set a breakpoint in my child view model's `OnViewReady` and it never gets hit. The parent one gets hit, and the child's OnViewAttached and OnViewLoaded both trigger, but Ready doesn't.

Is that by design?
Comments: You were right: OnViewReady() is only called for the root ViewModel. And you want it to be called on child ViewModels too?

Viewing all articles
Browse latest Browse all 1760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>