locked
[UWP] Visibility of the last ListViewItem on Lumia RRS feed

  • Question

  • Hello I have an Page on my Lumia 650.

    On the Page there is placed an ListView.

    When I add to the ListView many items, the last item is covered by the Lumia's navigation belt.

    How to do last item visible up the belt?

    Monday, July 17, 2017 10:02 PM

Answers

  • @BitSmithy

    Sorry for the delay.

    I have test your Xaml in my side. It works well. The list is shown and if I scroll to the end, no item is hide behind the navigation bar.

    If you don’t need the navigation bar, you could use fullscreen mode. You could refer the following code:

    ApplicationView view = ApplicationView.GetForCurrentView();      
    bool isInFullScreenMode = view.IsFullScreenMode;
           if (isInFullScreenMode)
           {
              view.ExitFullScreenMode();
           }
           else
           {   
              view.TryEnterFullScreenMode();
           }

    Best Regards

    Roy 


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by BitSmithy Thursday, September 28, 2017 2:06 PM
    Tuesday, July 25, 2017 9:56 AM

All replies

  • Hi BitSmithy,

    Have you tried to wrap your ListView in a ScrollViewer?


    What do you mean by 'navigation belt'? Could you please upload a snapshot? Could you please paste your XAML? 


    I build UWPs: Arrnage Pro, Cloud Resource Tools

    Tuesday, July 18, 2017 5:09 AM
  • Hi BitSmithy

    I created a simple demo with a listview in the page, added many items to it. But I didn’t find the issue you said.

    As @Saar Shen said, could you describe your issue more clearly using a snapshot or an image? Also you could provide your xaml code which could reproduce the issue to me?

    Best Regards

    Roy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Tuesday, July 18, 2017 9:06 AM
  • Navigation belt means standard lumia bottom menu with three icons: back arrow, windows icon, and loupe(search icon).

    XAML code:

    <Page>

    .......

        <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
            <Grid.RowDefinitions>
                <RowDefinition Height="44"></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>

            <Button x:Name="btnMode" Grid.Row="0" Content="{Binding ModeName, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}"
                    BorderBrush="Black"
                        Height="35" Margin="2,2,2,2"
                    HorizontalAlignment="Stretch"                
                    VerticalAlignment="Top"
                    Click="btnMode_Click"
                    />
            <ListView x:Name="lvList" Grid.Row="1" Margin="5,0,5,5"
                      HorizontalAlignment="Stretch" VerticalAlignment="Top"
                      SelectionMode="Single"                 
                      ScrollViewer.HorizontalScrollMode="Auto"
                      ScrollViewer.HorizontalScrollBarVisibility="Auto"                 
                      SelectionChanged="lvList_SelectionChanged"
       
                      ItemTemplateSelector="{StaticResource lvListDataTemplateSelector}"                                   
                      >
                <ListView.ItemContainerStyle>
                    <Style TargetType="ListViewItem">
                        <Setter Property="Margin" Value="0 1 0 0"></Setter>
                        <Setter Property="Padding" Value="0 1 0 0"></Setter>
                        <Setter Property="MinHeight" Value="35" />
                    </Style>
                </ListView.ItemContainerStyle>
            </ListView>
        </Grid>
    < /Page>

    Screen:

    Wednesday, July 19, 2017 8:28 PM
  • @BitSmithy

    Sorry for the delay.

    I have test your Xaml in my side. It works well. The list is shown and if I scroll to the end, no item is hide behind the navigation bar.

    If you don’t need the navigation bar, you could use fullscreen mode. You could refer the following code:

    ApplicationView view = ApplicationView.GetForCurrentView();      
    bool isInFullScreenMode = view.IsFullScreenMode;
           if (isInFullScreenMode)
           {
              view.ExitFullScreenMode();
           }
           else
           {   
              view.TryEnterFullScreenMode();
           }

    Best Regards

    Roy 


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by BitSmithy Thursday, September 28, 2017 2:06 PM
    Tuesday, July 25, 2017 9:56 AM