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

Elastic scroll

1 Answer 48 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stelian
Top achievements
Rank 1
Stelian asked on 07 Sep 2014, 11:13 AM
    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>

1 Answer, 1 is accepted

Sort by
0
Stelian
Top achievements
Rank 1
answered on 07 Sep 2014, 11:31 AM
I solved the problem by removing the StackPanel.
Tags
DataBoundListBox
Asked by
Stelian
Top achievements
Rank 1
Answers by
Stelian
Top achievements
Rank 1
Share this question
or