Elastic scroll

2 posts, 0 answers
  1. Stelian
    Stelian avatar
    3 posts
    Member since:
    May 2014

    Posted 07 Sep 2014 Link to this post

        I'm using the DataBoundListBox, inside a stackpanel which is contained by a pivot. The scrolling is available but, it is like an elastic, it won't hold his current position. Below is the xaml.

    Thanks in advance,
    Stelian Popa.


    ​ <phone:PivotItem Header="{Binding LocalizedResources.lblConsumText, Source={StaticResource LocalizedStrings}}">
     
     <StackPanel>
     <telerikPrimitives:RadDataBoundListBox ItemsSource="{Binding ListaConsumuri}"
     Tap="UIElement_OnTap"
     >
     <telerikPrimitives:RadDataBoundListBox.ItemTemplate>
     <DataTemplate>
     <StackPanel Orientation="Horizontal" Height="40">
     <TextBlock Text="{Binding DataConsum}" Width="200"/>
     <TextBlock Text="{Binding IndexUtilitate}" Width="100"/>
     <TextBlock Text="{Binding Consum}"/>
     </StackPanel>
     </DataTemplate>
     </telerikPrimitives:RadDataBoundListBox.ItemTemplate>
     
     <telerikPrimitives:RadDataBoundListBox.EmptyContentTemplate>
     <DataTemplate>
     <TextBlock Text="{Binding Path=LocalizedResources.NuSuntInregistrariAdaugate,
     Source={StaticResource LocalizedStrings}}"
     
     ></TextBlock>
     </DataTemplate>
     </telerikPrimitives:RadDataBoundListBox.EmptyContentTemplate>
     
     </telerikPrimitives:RadDataBoundListBox>
     
     </StackPanel>
     </phone:PivotItem>

  2. Stelian
    Stelian avatar
    3 posts
    Member since:
    May 2014

    Posted 07 Sep 2014 in reply to Stelian Link to this post

    I solved the problem by removing the StackPanel.
  3. DevCraft banner
Back to Top