开发者

Silverlight DataPager control loses first/last buttons

开发者 https://www.devze.com 2023-03-19 13:57 出处:网络
I\'m using the DataPager control in XAML as follows: <Grid.ColumnDefinitions> <ColumnDefinition Width=\"1*\" />

I'm using the DataPager control in XAML as follows:

     <Grid.ColumnDefinitions>
      <ColumnDefinition Width="1*" />
      <ColumnDefinition Width="1*" />
      <ColumnDefinition Width="1*" />
     </Grid.ColumnDefinitions>

    <data:DataPager Grid.Column="1"
       Source="{Binding PagedCollection, ElementName=开发者_JAVA技巧ucPagingControl}"
       PageSize="{Binding PagedCollection.PageSize, ElementName=ucPagingControl}" 
       AutoEllipsis="True" 
       DisplayMode="FirstLastPreviousNextNumeric" />

and all displays well for the first 99 pages

Silverlight DataPager control loses first/last buttons

However, after page 100 I lose the first/last button graphics

Silverlight DataPager control loses first/last buttons

Any ideas why or how to change the number of pages displayed to recover the space?


Turns out the fix was in the Grid definition. The following works:

     <Grid.ColumnDefinitions>
      <ColumnDefinition />
      <ColumnDefinition Width="Auto" />
      <ColumnDefinition />
     </Grid.ColumnDefinitions>
0

精彩评论

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