XAML 코드

1
2
3
4
5
6
7
<ListView Name="ImageListView" ScrollViewer.CanContentScroll="False">        
        <ListBox.ItemContainerStyle>
            <Style TargetType="ListBoxItem">
                <EventSetter Event="RequestBringIntoView" Handler="ListBoxItemRequestBringIntoView"/>
            </Style>
        </ListBox.ItemContainerStyle>
</ListView>


CS 코드

1
2
3
4
private void ListBoxItemRequestBringIntoView(object sender , RequestBringIntoViewEventArgs e)
{
    e.Handled = true;
}


+ Recent posts