Freeze when using VirtualizingPanel.IsVirtualizingWhenGrouping - by dialogik

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 780146 Comments
Status Closed Workarounds
Type Bug Repros 3
Opened 2/27/2013 12:40:19 PM
Access Restriction Public


If using an Itemscontrol with VirtualizingStackpanel and IsVirtualizingWhenGrouping =true, MouseScroll freezes the application when GroupStyle ControlTemplate does not contain a Expander.

The behavior seams caused by the fact that the Expander Template sets the content-height to the desired height of the containing grid.
Sign in to post a comment.
Posted by Grandpappy on 6/22/2017 at 11:48 AM
I ran across this while looking at a similar problem, and this led me to the correct fix for me. My problem was that the GroupStyle.ContainerStyle had a margin that changed the vertical size:

<Style TargetType="GroupItem">
    <Setter Property="Margin" Value="0,10,0,0" />

For me, I just removed the ContainerStyle all together, and moved the margin to the HeaderTemplate. I hope this helps the next person.
Posted by Microsoft on 8/4/2013 at 9:59 AM
A fix for this issue will be included in a forthcoming platform update. The exact nature and date of the update is TBD.
Posted by dialogik on 6/15/2013 at 4:57 AM
Even the ControlTemplate contains a Expander, MouseScroll freezes some cases when VirtualizingPanel.IsVirtualizingWhenGrouping and VirtualizingStackPanel.ScrollUnit = ScrollUnit.Pixel.

Please fix those two issues ASAP. If fixed .Net 4.5 is so awesome, thanks for the IsVirtualizingWhenGrouping anyway,
great stuff!
Posted by James079 on 3/12/2013 at 8:25 AM
I had already posted this bug before. I just didn't know it's got to do with ControlTemplate not containing an expander. Glad someone else pointed it out. I don't know how this bug went omitted for so long.
It's like WPF 4.5 is in total abandonship. Pity.
Posted by Microsoft on 2/27/2013 at 9:32 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 2/27/2013 at 12:50 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(