locked
Disable scroll with item in Listview RRS feed

  • Question

  • Hello everyone,

    I am trying to disable scroll in listview. I define one header & item template. But when i am scroll down in item header goes to upside. I wouldn't scroll header with item. I could scroll only item. Anyone help me. Thanks in advance.

    Thursday, October 3, 2013 6:30 AM

Answers

  • The name is misleading if you are coming from WPF. It's a header of the list, not the control, so it will scroll away. You need to put it outside of the control.
    • Marked as answer by Khant Nipun Thursday, October 3, 2013 6:59 AM
    Thursday, October 3, 2013 6:56 AM

All replies

  • Hello, Khant!

    If I understand you correctly, you want to scroll only items without scrolling header? If yes, try to separate header and listview. 

    <Grid>
    <Grid.RowDefinitions>
     <RowDefinition Heigth="Auto"/>
     <RowDefinition Heigth="*"/>
    </Grid.RowDefinitions>
    
     <TextBlock Text="Header"/>
    
    <ListView Grid.Row="1"/>

    • Edited by Oleg Kurzov Thursday, October 3, 2013 6:54 AM
    Thursday, October 3, 2013 6:52 AM
  • The name is misleading if you are coming from WPF. It's a header of the list, not the control, so it will scroll away. You need to put it outside of the control.
    • Marked as answer by Khant Nipun Thursday, October 3, 2013 6:59 AM
    Thursday, October 3, 2013 6:56 AM
  • Ok thankyou,

    Both Oleg & IvaniL ,I understand  your answer.

    Thursday, October 3, 2013 6:59 AM