Quantcast
Viewing all articles
Browse latest Browse all 7205

How to generate groups and items via ItemsSource

This example demonstrates how to bind NavBarControl with a DataSource.

Question Comments

Added By: Mikhail Shubin at: 4/23/2015 11:04:27 AM    

Hello,

This example has a binding error:
System.Windows.Data Error: 40 : BindingExpression path error: 'Content' property not found on 'object' ''Item'

To fix it I've changed the DataTemplate as follows:
                   <DataTemplate>
                       <TextBlock Text="{Binding Header}" Background="Black" Foreground="Yellow"/>
                   </DataTemplate>

Without it I see black bars instead of items.

Best regards,
Mikhail


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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