I need to have ListView out of a screen and be able to scroll to the first element which is "out of the screen".
When I moved ListView with margin out of screen I am not able to reach the first position.
I have this:
<ListView Grid.IsSharedSizeScope="True">        
            <ListView.ItemContainerStyle>
                <Style TargetType="ListViewItem">
                    <Setter Property="Focusable" Value="false"/>
                    <EventSetter Event="PreviewMouseLeftButtonDown" Handler="ListViewItem_PreviewMouseLeftButtonDown"/>
                </Style>
            </ListView.ItemContainerStyle>
            <ListView.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="50" SharedSizeGroup="First" />
                            <ColumnDefinition Width="150" SharedSizeGroup="Second"/>
                            <ColumnDefinition Width="200" SharedSizeGroup="Third"/>
                            <ColumnDefinition Width="50" SharedSizeGroup="Fourth"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Text ="{Binding some1}" />
                        <TextBlock Grid.Column="1" Text="{Binding some2}" />
                        <TextBlock Grid.Column="2" Text="{Binding some3}" />
                        <Button Grid.Column="3" Click="Cancel">X</Button>
                    </Grid>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
I need to scroll to the first element as you can see in picture 2. Does anyone know how to do it?
Thank you for advice.