开发者

How to show one page per record, with pagination?

开发者 https://www.devze.com 2023-03-21 20:58 出处:网络
I have an xml file which I am reading into an IEnumerable using linq, now rather than listing every entry using a listbox on one page, id like to show one record on a page.

I have an xml file which I am reading into an IEnumerable using linq, now rather than listing every entry using a listbox on one page, id like to show one record on a page.

I've found a blog article on the subject

http://indyfromoz.wordpress.com/2010/08/30/windows-phone-7-listbox-pagination-with-mvvmlight-applicationbar/

But it is using MVVM, how do I go about just loading 开发者_开发问答one record into a form and making it cycle through to records.


If you don't want to use MVVM then you can name your controls and then refer to them by that name in the code behind.

xaml:

<TextBlock x:Name="myTextblock" />

cs:

this.myTextblock.Text = myEnumerable.Property;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号