Caliburn and datatemplates in Silverlight 3 <p>Does anyone know if the same functionality for displaying views depending on object/viewmodel is applicable to Silverlight 3?</p> <p>Like this:</p> <pre><code>&lt;Application.Resources&gt; &lt;DataTemplate DataType="{x:Type vm:CustomerViewModel}"&gt; &lt;view:CustomerView /&gt; &lt;/DataTemplate&gt; </code></pre> <p></p> <pre><code>&lt;ContentControl Content="{Binding Path=CurrentView}"/&gt; public class RootViewModel : BaseViewModel </code></pre> <p>{</p> <pre><code>private BaseViewModel _currentView; public BaseViewModel CurrentView { get { return _currentView; } set { _currentView = value; RaisePropertyChanged("CurrentView"); } } public void ShowCustomer() { CurrentView = IoC.Resolve&lt;Customerviewmodel&gt;(); } </code></pre> <p>}</p> <p>Sorry about the formatting. Can't seem to get it right...</p> <p>/Johan</p>