Xceed DataGrid for Silverlight Documentation
RangeDataNavigationConfiguration Class
Members  Example 


Used to configure the DataNavigationControl to display buttons that correspond to a range of numeric values.
Syntax
'Declaration
 
Public Class RangeDataNavigationConfiguration 
   Inherits DataNavigationConfiguration
   Implements MS.Internal.IManagedPeer, MS.Internal.IManagedPeerBase, MS.Internal.INativeCoreTypeWrapper 
'Usage
 
Dim instance As RangeDataNavigationConfiguration
public class RangeDataNavigationConfiguration : DataNavigationConfiguration, MS.Internal.IManagedPeer, MS.Internal.IManagedPeerBase, MS.Internal.INativeCoreTypeWrapper  
Remarks
The behavior of DataNavigationControl is determined by setting that class's DataNavigationConfiguration attached property to a DataNavigationConfiguration-derived instance.
Example
The following XAML shows how to configure the DataNavigationControl to display buttons for keys corresponding to the decades in which films in a movie database were released.
<sllb:ListBox x:Name="catalogListBox"
              Grid.Column="1"
              Grid.ColumnSpan="2"
              Grid.Row="7"
              ItemsSource="{Binding Catalog}"
              ItemTemplate="{StaticResource movieListBoxItemTemplate}"
              AllowDrag="True"
              ToolPaneVisibility="Collapsed"
              sllb:SearchTextBox.FilteredFieldNames="Name">

  <sllb:ListBox.Resources>
    <sllb:MetroBlackThemeResourceDictionary AccentColor="Red" />
  </sllb:ListBox.Resources>


  <sllb:DataNavigationControl.DataNavigationConfiguration>
    <sllb:RangeDataNavigationConfiguration>
      <sllb:RangeDataNavigationConfiguration.Start>
        <sys:Int32>2020</sys:Int32>
      </sllb:RangeDataNavigationConfiguration.Start>
      <sllb:RangeDataNavigationConfiguration.End>
        <sys:Int32>1891</sys:Int32>
      </sllb:RangeDataNavigationConfiguration.End>
      <sllb:RangeDataNavigationConfiguration.Step>
        <sys:Int32>10</sys:Int32>
      </sllb:RangeDataNavigationConfiguration.Step>
      <sllb:RangeDataNavigationConfiguration.ItemTemplate>
        <DataTemplate>
          <Grid x:Name="LayoutRoot">
            <TextBlock Text="{Binding Converter={StaticResource yearToDecadeConverter}}"
                       TextWrapping="Wrap"
                       Width="75"/>
          </Grid>
        </DataTemplate>
      </sllb:RangeDataNavigationConfiguration.ItemTemplate>
    </sllb:RangeDataNavigationConfiguration>
  </sllb:DataNavigationControl.DataNavigationConfiguration>

  <sllb:ListBox.GroupDescriptions>
    <PropertyGroupDescription PropertyName="ReleaseYear" />
  </sllb:ListBox.GroupDescriptions>

</sllb:ListBox>
Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      Xceed.Silverlight.Controls.DataNavigationConfiguration
         Xceed.Silverlight.Controls.RangeDataNavigationConfiguration

Requirements

Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family

See Also

Reference

RangeDataNavigationConfiguration Members
Xceed.Silverlight.Controls Namespace

Send Feedback