Saturday, April 9, 2011

Pagind in Silverlight using PagedCollectionView


 Private Sub MainPage_Loaded(ByVal sender As Object, ByVal e As


System.Windows.RoutedEventArgs) Handles Me.Loaded
Dim x As New List(Of String)
x.Add("aaa")
x.Add("bbb")
x.Add("ccc")
x.Add("ddd")
x.Add("eee")
x.Add("fff")
Dim y As New System.Windows.Data.PagedCollectionView(x)
DataGrid1.ItemsSource = y
DataPager1.Source = y
End Sub

No comments:

Post a Comment