My List View contains nearly 10 items.I am able to show vertical scroll bar for list view. I am able to scroll the items by clicking on vertical scroll bar.
But What I want is When User placed control over a List View and trying to scroll the Items with Mouse that I am unable to do.
Please help me how can I solve this Issue.
Please give me your valuable Suggestions.
Here I am Adding My List View Code
<Border BorderThickness="0.5" CornerRadius="2" BorderBrush="Gray" Width="1250" Height="730" Margin="0,5,0,0">
<StackPanel Name="spStore" Visibility="Hidden" Background="AliceBlue">
<Label Content="{DynamicResource keyStore Management}" HorizontalAlignment="Center" FontSize="20" FontWeight="Bold" Foreground="DarkTurquoise"/>
<!--Scroll view to display list of items-->
<ScrollViewer VerticalScrollBarVisibility="Auto" Height="690" Visibility="Visible">
<StackPanel Orientation="Vertical">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Label Content="{DynamicResource keySTOCK MANAGEMENT}" Foreground="DarkTurquoise" FontSize="18" FontWeight="Bold" HorizontalAlignment="Left" Grid.Row="0"></Label>
<ListView Margin="0" Background="White" BorderThickness="0" Grid.Row="1" ScrollViewer.CanContentScroll="True" Name="lvstock" PreviewMouseWheel="lvstock_PreviewMouseWheel">
<ListViewItem MouseLeftButtonUp="StockDetails_Click" Background="AliceBlue" BorderBrush="Gray" BorderThickness="0.5,0.5,0.5,0" Cursor="Hand">
<StackPanel Orientation="Horizontal">
<Image Source="Images/Critical.png" Margin="0,0,5,0" Height="80" Width="80" />
<TextBlock VerticalAlignment="Center" FontWeight="Bold" FontSize="15" Text="{DynamicResource keyView Stocks}" ></TextBlock>
</StackPanel>
</ListViewItem>
<ListViewItem Background="AliceBlue" BorderBrush="Gray" MouseLeftButtonUp="StockVerificationDetails_Click" BorderThickness="0.5,0.5,0.5,0" Cursor="Hand">
<StackPanel Orientation="Horizontal">
<Image Source="Images/StockVerification.png" Margin="0,0,5,0" Height="80" Width="80" />
<TextBlock VerticalAlignment="Center" FontWeight="Bold" FontSize="15" Text="{DynamicResource keyVerify Stocks}"></TextBlock>
</StackPanel>
</ListViewItem>
<ListViewItem Background="AliceBlue" BorderBrush="Gray" MouseLeftButtonUp="VerifiedStockDetails_Click" BorderThickness="0.5,0.5,0.5,0.5" Cursor="Hand">
<StackPanel Orientation="Horizontal">
<Image Source="Images/StockVerification.png" Margin="0,0,5,0" Height="80" Width="80" />
<TextBlock VerticalAlignment="Center" FontWeight="Bold" FontSize="15" Text="{DynamicResource keyVerified Stock Report}"></TextBlock>
</StackPanel>
</ListViewItem>
</ListView>
<Label Content="{DynamicResource keyGOODS TRANSFER}" Foreground="DarkTurquoise" FontSize="18" FontWeight="Bold" HorizontalAlignment="Left" Grid.Row="2"></Label>
<ListView Margin="0" Background="White" BorderThickness="0" Grid.Row="3">
<ListViewItem Background="AliceBlue" BorderBrush="Gray" MouseLeftButtonUp="StockReceipt_Click" BorderThickness="0.5,0.5,0.5,0" Cursor="Hand">
<StackPanel Orientation="Horizontal">
<Image Source="Images/GoodsReceipts.png" Margin="0,0,5,0" Height="80" Width="80" />
<TextBlock VerticalAlignment="Center" FontWeight="Bold" FontSize="15" Text="{DynamicResource keyStock Receipt}"></TextBlock>
</StackPanel>
</ListViewItem>
<ListViewItem Background="AliceBlue" BorderBrush="Gray" MouseLeftButtonUp="StockIssue_Click" BorderThickness="0.5,0.5,0.5,0.5" Cursor="Hand">
<StackPanel Orientation="Horizontal">
<Image Source="Images/GoodsIssue.png" Margin="0,0,5,0" Height="80" Width="80" />
<TextBlock VerticalAlignment="Center" FontWeight="Bold" FontSize="15" Text="{DynamicResource keyStock Issue}"></TextBlock>
</StackPanel>
</ListViewItem>
<ListViewItem Background="AliceBlue" BorderBrush="Gray" Name="GoodsReturn" BorderThickness="0.5,0.5,0.5,0" MouseLeftButtonUp="GoodsReturn_MouseLeftButtonUp" Cursor="Hand">
<StackPanel Orientation="Horizontal">
<Image Source="Images/shipment_icon.png" Margin="0,0,5,0" Height="80" Width="80" />
<TextBlock VerticalAlignment="Center" FontWeight="Bold" FontSize="15" Text="{DynamicResource keyGoodsReturn}"></TextBlock>
</StackPanel>
</ListViewItem>
</ListView>
<Label Content="{DynamicResource keyGOODS PROCUREMENT}" Foreground="DarkTurquoise" FontSize="18" FontWeight="Bold" HorizontalAlignment="Left" Grid.Row="4"></Label>
<ListView Margin="0" Background="White" BorderThickness="0" Grid.Row="5">
<ListViewItem Background="AliceBlue" BorderBrush="Gray" BorderThickness="0.5,0.5,0.5,0" Cursor="Hand">
<StackPanel Orientation="Horizontal">
<Image Source="Images/PO.png" Margin="0,0,5,0" Height="80" Width="80" />
<TextBlock VerticalAlignment="Center" FontWeight="Bold" FontSize="15" Text="{DynamicResource keyPurchases}"></TextBlock>
</StackPanel>
</ListViewItem>
<ListViewItem Background="AliceBlue" BorderBrush="Gray" MouseLeftButtonUp="ProcurementReceipt_Click" BorderThickness="0.5,0.5,0.5,0.5" Cursor="Hand">
<StackPanel Orientation="Horizontal">
<Image Source="Images/GoodsReceipts.png" Margin="0,0,5,0" Height="80" Width="80" />
<TextBlock VerticalAlignment="Center" FontWeight="Bold" FontSize="15" Text="{DynamicResource keyReceipts}"></TextBlock>
</StackPanel>
</ListViewItem>
</ListView>
<Label Content="{DynamicResource keyDELIVERIES}" Foreground="DarkTurquoise" FontSize="18" FontWeight="Bold" HorizontalAlignment="Left" Grid.Row="6"></Label>
<ListView Margin="0" Background="White" BorderThickness="0" Grid.Row="7">
<ListViewItem Background="AliceBlue" BorderBrush="Gray" BorderThickness="0.5,0.5,0.5,0" Cursor="Hand">
<StackPanel Orientation="Horizontal">
<Image Source="Images/NewOrder.png" Margin="0,0,5,0" Height="80" Width="80" />
<TextBlock VerticalAlignment="Center" FontWeight="Bold" FontSize="15" Text="{DynamicResource keyOrders}"></TextBlock>
</StackPanel>
</ListViewItem>
<ListViewItem Background="AliceBlue" BorderBrush="Gray" BorderThickness="0.5,0.5,0.5,0.5" Cursor="Hand">
<StackPanel Orientation="Horizontal">
<Image Source="Images/shipment_icon.png" Margin="0,0,5,0" Height="80" Width="80" />
<TextBlock VerticalAlignment="Center" FontWeight="Bold" FontSize="15" Text="{DynamicResource keyShipments}">Shipments</TextBlock>
</StackPanel>
</ListViewItem>
</ListView>
</Grid>
</StackPanel>
</ScrollViewer>
</StackPanel>
</Border>
Thanks in advance.