Search code examples
silverlight-4.0datapager

Silverlight DataPager control loses first/last buttons


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=ucPagingControl}"
       PageSize="{Binding PagedCollection.PageSize, ElementName=ucPagingControl}" 
       AutoEllipsis="True" 
       DisplayMode="FirstLastPreviousNextNumeric" />

and all displays well for the first 99 pages

enter image description here

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

enter image description here

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


Solution

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

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