I'm binding Panorama control to my view model (of type ObservableCollection
).
I use ItemTemplate
. I can't use HeaderTemplate
because it makes transition not really smooth (don't know why !! )
Here is my XAML
<controls:Panorama Name="panorama" >
<controls:Panorama.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="210"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding Name}"/>
</Grid>
</DataTemplate>
</controls:Panorama.ItemTemplate>
</controls:Panorama>
However, when running, every panorama item does show the Model class name.
If I use HeaderTemplate
, it doesnot show that.
How to fix that ?