Binding Pivot control with Observable Collection MVVM (windows phone 8)

前端 未结 3 598
北海茫月
北海茫月 2021-01-19 17:22

I\'m new to WP8 & MVVM. I created wp8 app which requests various bits of data once a user has logged in. I just can\'t get my pivots header to get created dynamically an

3条回答
  •  一个人的身影
    2021-01-19 18:11

    Problem resolved!!!

    My code was right all along but the XAML wasn't!

    Steep and painful learning curve I guess! Anyway, I found a resolution after finding an article on stackoverflow which basically showed me that the way I wrote the xaml was just not appropriate.

    I'll be honest, I don't understand why this doesn't work the way it was defined but in short, I have to use HeaderTemplate and ItemTemplate in order to display the data correctly when binded to a ViewModel!

    Here is the post: Databound pivot is not loading the first PivotItem in Windows Phone 8

提交回复
热议问题