locked
Listview in Popup not scrollable

    Question

  • Hi,

    I have page, there is a Popup control which be open by click a button. Inside the Popup, I have a ListView:

    <Popup x:Name="ResourceCategoriesView" VerticalOffset="100" HorizontalOffset="10" IsLightDismissEnabled="True" Opened="ResourceCategoriesView_Opened">
                    <Border x:Name="RCPopupBorder" BorderBrush="{Binding AppforoBorderBrush}" 
                    Background="{Binding AppforoPageBackground}"
                    BorderThickness="2">
                        <ListView x:Name="RCQuickNavigationListView" Visibility="Visible"
                          ItemTemplate="{StaticResource AppforoResourceCategoryItemTemplate}" Margin="0,12,0,0">
                        </ListView>
                    </Border>
    </Popup>

    When running app, listview binding data successfully but the Listview can not scroll. Any idea?

    Sincerely,

    Vu



    • Edited by Vu_Tran Thursday, March 19, 2015 4:11 AM edit
    Thursday, March 19, 2015 4:10 AM

Answers

  • I found another solution. I use ContentDialog control, not use Popup. If add ScrollViewer to Popup, Listview is not scrollable too.

    Vu Tran

    Saturday, March 21, 2015 2:32 AM

All replies

  • Perhaps you could try putting it into a scrollviewer.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Thursday, March 19, 2015 1:49 PM
    Moderator
  • I found another solution. I use ContentDialog control, not use Popup. If add ScrollViewer to Popup, Listview is not scrollable too.

    Vu Tran

    Saturday, March 21, 2015 2:32 AM