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

Created Unassigned: Remove IHaveDisplayName from IScreen and Screen [315]

$
0
0
I don't see why `IScreen` inherits `IHaveDisplayName`.
Most of the time, you *don't* want to set the title of a window from the ViewModel, just like you normally wouldn't set the title of the button from the VM.

This interface is incredibly easy to implement, so there is really no reason to implement it by default.
Right now, I have to basically re-implement `Screen` without that interface to stop it from hijacking and overwriting the title defined in XAML. Furthermore, the current default (the type of the view model) is never a good value for a title.

I see not a single reason for having that interface implemented in `Screen`.

Viewing all articles
Browse latest Browse all 1760

Trending Articles



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