Dialog view containing two Caliburn.Micro views?

If you have a property on your dialog view model which is another view model type, and you add a ContentControl to your dialog view which is named the same as this property, then Caliburn. Micro will automatically inject the view which corresponds to your property view model type into the ContentControl placeholder, and bind that view model type to the view automatically too. Is this what you mean?

Something like: Dialog View Model private MyReusableControlViewModel myReuseableControl; public MyReusableControlViewModel MyReuseableControl { get { return this. MyReuseableControl; } set { this. MyReuseableControl = value; NotifyOfPropertyChanged(...); } } // Dialog View Model Constructor public DialogViewModel() { this.

MyReuseableControl = new MyReusableControlViewModel(); } // Dialog View ...

If you have a property on your dialog view model which is another view model type, and you add a ContentControl to your dialog view which is named the same as this property, then Caliburn. Micro will automatically inject the view which corresponds to your property view model type into the ContentControl placeholder, and bind that view model type to the view automatically too. Is this what you mean?

Something like: // Dialog View Model private MyReusableControlViewModel myReuseableControl; public MyReusableControlViewModel MyReuseableControl { get { return this. MyReuseableControl; } set { this. MyReuseableControl = value; NotifyOfPropertyChanged(...); } } // Dialog View Model Constructor public DialogViewModel() { this.

MyReuseableControl = new MyReusableControlViewModel(); } // Dialog View ... Of course, ideally you would want to inject any dependencies of the dialog view model (in this case MyReusableControlViewModel) and work against abstractions inside the dialog view model, rather than concrete types.

This sounds like exactly what I'm looking for, I'll give it a try. – DaveK Dec 13 '10 at 15:30 Works perfectly, thanks! – DaveK Dec 13 '10 at 21:41.

If you have a property on your dialog view model which is another view model type, and you add a ContentControl to your dialog view which is named the same as this property, then Caliburn. Micro will automatically inject the view which corresponds to your property view model type into the ContentControl placeholder, and bind that view model type to the view automatically too. Is this what you mean?

Something like.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions