ScrollViewer navigation error

2 posts, 0 answers
  1. Bruno
    Bruno avatar
    1 posts
    Member since:
    Sep 2010

    Posted 09 Sep 2010 Link to this post

    When I removed the ScrollViewer worked fine but when I put the navigation worked fine at first but then stoped.
    What's wrong?

    <navigation:Page 
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
               xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
               xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
               xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
               xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="QuadrinhosSilverlight.View.Paginas"
               mc:Ignorable="d"           
               Title="Paginas Page" Loaded="Page_Loaded" >

        <navigation:Page.Resources>
            <DataTemplate x:Name="LeftPageTemplate">
                <StackPanel Margin="5" Background="White" MinWidth="380">
                    <Image Source="{Binding Imagem}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Stretch="Uniform" MinWidth="370"/>
                </StackPanel>
            </DataTemplate>

            <DataTemplate x:Name="RightPageTemplate">
                <StackPanel Margin="5"  Background="White" MinWidth="380">
                    <Image Source="{Binding Imagem}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Stretch="Uniform" MinWidth="370"/>
                </StackPanel>
            </DataTemplate>
        </navigation:Page.Resources>
        <ScrollViewer VerticalScrollBarVisibility="Visible">
            <Grid x:Name="LayoutRoot" Margin="0">
                <telerik:RadBook x:Name="Gibi" LeftPageTemplate="{StaticResource LeftPageTemplate}" RightPageTemplate="{StaticResource RightPageTemplate}" Margin="5,5,0,0" RightPageIndex="2" IsKeyboardNavigationEnabled="True" FoldSize="100,100" HorizontalAlignment="Left" VerticalAlignment="Top" />
            </Grid>
        </ScrollViewer>
    </navigation:Page>


    //Binding
            ObservableCollection<ImageItem> _listaDeImagens = new ObservableCollection<ImageItem>();
    foreach (var item in _listaDePaginas)
            {
              _listaDeImagens.Add(new ImageItem()
              {
                  Imagem = "/img/historia/" + item.Historia.Id.ToString() + "/" + item.NomeDoArquivo
              });

            }
            Gibi.ItemsSource = _listaDeImagens;
    //---


    public class ImageItem
        {
            public int Id { get; set; }
            public string Imagem { get; set; }
            public string Titulo { get; set; }
        }


  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 15 Sep 2010 Link to this post

    Hi Bruno,

    Thank you for your feedback. We are aware of this issue as it is already logged in our public issue tracking system. Currently we are not aware of what is causing the problem, so keep track of the PITS item for further information.

    Kind regards,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top