Page added the following
<UserControl.Resources>
<DataTemplate x:Key="DummyPageTemplate">
<Border BorderBrush="Black" BorderThickness="2" Background="LightGray">
<TextBlock Text="{Binding Name}" HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Border>
</DataTemplate>
<DataTemplate x:Key="DataPageTemplate">
<Border BorderBrush="Black" BorderThickness="2" Background="LightGray">
<Image Source="{Binding ImageSource}" />
</Border>
</DataTemplate>
<local:PageTemplateSelector x:Key="PageTemplateSelector"
DataPageTemplate="{StaticResource DataPageTemplate}"
DummyPageTemplate="{StaticResource DummyPageTemplate}" />
</UserControl.Resources>
<Grid VerticalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions >
<telerikGridView:RadDataPager x:Name="radDataPager2" HorizontalAlignment="Center"
Source="{Binding ItemsSource, ElementName=book1}"
DisplayMode="All" PageSize="1" Width="750" />
<telerikNavigation:RadBook x:Name="book1" Width="750" Grid.Row="1"
LeftPageTemplateSelector="{StaticResource PageTemplateSelector}"
RightPageTemplateSelector="{StaticResource PageTemplateSelector}"
IsKeyboardNavigationEnabled="True" Margin="0 1"
/>
<telerikGridView:RadDataPager Grid.Row="2" x:Name="radDataPager1"
HorizontalAlignment="Center" Source="{Binding ItemsSource, ElementName=book1}"
DisplayMode="All" IsTotalItemCountFixed="True"
Width="750" PageSize="1"/>
</Grid>
But the book does not leafing through page by clicking on the page. What is the problem?
<UserControl.Resources>
<DataTemplate x:Key="DummyPageTemplate">
<Border BorderBrush="Black" BorderThickness="2" Background="LightGray">
<TextBlock Text="{Binding Name}" HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Border>
</DataTemplate>
<DataTemplate x:Key="DataPageTemplate">
<Border BorderBrush="Black" BorderThickness="2" Background="LightGray">
<Image Source="{Binding ImageSource}" />
</Border>
</DataTemplate>
<local:PageTemplateSelector x:Key="PageTemplateSelector"
DataPageTemplate="{StaticResource DataPageTemplate}"
DummyPageTemplate="{StaticResource DummyPageTemplate}" />
</UserControl.Resources>
<Grid VerticalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions >
<telerikGridView:RadDataPager x:Name="radDataPager2" HorizontalAlignment="Center"
Source="{Binding ItemsSource, ElementName=book1}"
DisplayMode="All" PageSize="1" Width="750" />
<telerikNavigation:RadBook x:Name="book1" Width="750" Grid.Row="1"
LeftPageTemplateSelector="{StaticResource PageTemplateSelector}"
RightPageTemplateSelector="{StaticResource PageTemplateSelector}"
IsKeyboardNavigationEnabled="True" Margin="0 1"
/>
<telerikGridView:RadDataPager Grid.Row="2" x:Name="radDataPager1"
HorizontalAlignment="Center" Source="{Binding ItemsSource, ElementName=book1}"
DisplayMode="All" IsTotalItemCountFixed="True"
Width="750" PageSize="1"/>
</Grid>
But the book does not leafing through page by clicking on the page. What is the problem?