I have a BaseView for my MVP - PRISM WPF application. Now for some reason we thought to make the _presenter as a Templated field in the BaseView.
earlier i had the view xaml representation as
<base:BaseView xamlns:base="clr address of the dll which had BaseView" >
</base:BaseView>
now since i have changed the BaseView
to BaseView<TPresenter>,
So how shall i write the Xaml then?
You can do it since
.NET 4 Framework
and XAML 2009. See Generics in XAML on MSDNFor instance:
For .NET 3.5: