Window title

Mar 9, 2011 at 7:39 AM

Hi,

I use caliburn 2.0 with Ninject and Infragistics. The title will not shown on any page.

I have the same problem with the sample "Caliburn.WindowManagement.ShellView".

If the property Title in the ShellViewXaml is set no changes on the window. The title on the window is "Caliburn.WindowManagement.ShellView".

If the Title is bind to a property in ShellViewModel it will work. In my application not even this works.

Do you have an advice for me?

 

 

 

 

Mar 9, 2011 at 6:21 PM
Edited Mar 9, 2011 at 6:24 PM

The DefaultWindowManager binds the Title property of the Window to the DisplayName property of the corresponding ViewModel, unless the Title already has a binding.
So you just have to set the DisplayName of the ShellViewModel.

@Rob: Perhaps the Title/DisplayName convention should only be applied if the Title has not already been set in Xaml? Thoughts?

Mar 11, 2011 at 9:14 AM

Thank you Marco for your suggestion.

Roland