views:

22

answers:

0

Generally speaking, ListViews are used like this:

<ListView>
    <ListView.View>
        <GridView/>
    </ListView.View>
</ListView>

And pretty much every template i have encountered so far assumes that View property will be a GridView. The ListViewItem templates i have encountered always look something like this:

<Border>        
    <GridViewRowPresenter/>
</Border>

The GridViewRowPresenter is, as the name implies, specific for the GridView...but what if someone uses a different ViewBase...

How do i write a ListView/ListViewItem template that can handle any type of ViewBase?

Seperating the View from the ListView seems rather pointless if i have to create different ListView templates for different ViewBase implementations.