This is a migrated thread and some comments may be shown as answers.

ScrollViewer navigation error

1 Answer 20 Views
Book
This is a migrated thread and some comments may be shown as answers.
Bruno
Top achievements
Rank 1
Bruno asked on 09 Sep 2010, 06:45 PM
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; }
    }


1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 15 Sep 2010, 08:02 AM
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
Tags
Book
Asked by
Bruno
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or