ScrollViewer in 2.2.0 Today's release
Posted: 15 Mar 2019, 10:59
Hi,
Updating to 2.2.0 today's release and I got the following behaviour :
ScrollViewer is responding to the mousewheel only if the mouse is over the ScrollViewer. Rolling mousewheel while over a child (listview) won't make it scroll anymore (Was working with the previous release)
Updating to 2.2.0 today's release and I got the following behaviour :
ScrollViewer is responding to the mousewheel only if the mouse is over the ScrollViewer. Rolling mousewheel while over a child (listview) won't make it scroll anymore (Was working with the previous release)
Code: Select all
<Grid Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Top">
<ScrollViewer>
<StackPanel x:Name="itGridViewRight" VerticalAlignment="Top">
<ListView Grid.Row="1" x:Name="itListViewFiles" SelectionMode="Single" ScrollViewer.VerticalScrollBarVisibility="Visible">
<ListView.ContextMenu>
<ContextMenu>
<MenuItem x:Name="itContextSelectAll" Header="Select All"></MenuItem>
<MenuItem x:Name="itContextUnselectAll" Header="UnSelect All"></MenuItem>
</ContextMenu>
</ListView.ContextMenu>
<ListView.View>
<GridView>
<GridView.ColumnHeaderContainerStyle>
<Style>
<Setter Property="FrameworkElement.Visibility" Value="Collapsed"/>
<Setter Property="FrameworkElement.Height" Value="1"/>
</Style>
</GridView.ColumnHeaderContainerStyle>
<GridViewColumn>
<GridViewColumn.CellTemplate>
<DataTemplate>
<CheckBox x:Name="itCheckBoxList" Margin="0" VerticalAlignment="Center" IsChecked="{Binding IsChecked}" Checked="OnCheck" Unchecked="OnCheck"></CheckBox>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn>
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBlock Margin="0" Text="{Binding Text}"></TextBlock>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn>
<GridViewColumn.CellTemplate>
<DataTemplate>
<Ellipse Fill="{Binding ColorBrush}" Width="20" Height="20" MouseEnter="Ellipse_MouseEnter" MouseLeave="Ellipse_MouseLeave" Stroke="#55FFFFFF" MouseLeftButtonDown="Ellipse_MouseLeftButtonDown" StrokeThickness="1">
</Ellipse>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
</ListView>
</StackPanel>
</ScrollViewer>
</Grid>