Is there a bug in GroupStyle HidesIfEmpty?

I have a Windows Phone 8.1 WinRT application. I use the combination of SemanticZoom + ListView to display a grouped list through CollectionViewSource. When I remove all elements from all groups (which are ObservableCollections) and start returning elements to these empty groups , the debugger breaks up and appears using “agip. *” Something at the point where it reads DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION; This happened for a while, but now for some reason I don’t know that my application just quits and debugs stops without error messages; That is why I cannot remember the exact file name.

I have two questions:

1) How can I run the debugger again to display this "agip. *" Page, and not just silently exit?

2) As a result of trial and error, I was able to identify the cause of this by changing <ListView.GroupStyle><GroupStyle HidesIfEmpty="true" to <ListView.GroupStyle><GroupStyle HidesIfEmpty="false". And my application works without problems. Could this be a mistake in WinRT?

PS: I can achieve the behavior of HidesIfEmpty by attaching the visibility of the group header to .items.count via the converter, so that there is no problem.

+4
source share
1 answer

Answering your questions

1) How can I run the debugger again to display this "agip. *" Page, and not just silently exit?

. : → Windows → . . , . win32-, , , , Visual Studio devenv.exe .

2) , < ListView.GroupStyle > < GroupStyle HidesIfEmpty = "true" < ListView.GroupStyle > < GroupStyle HidesIfEmpty = "false". . ​​WinRT?

, .

HidesIfEmpty, .items.count , .

Windows 10, , . , TextBlock . ( , - ).

-.

. :

foreach(var group in GroupsCollection)
{
    group.Clear();
    await Delay(1); // this is workaround
    group.Add(newItem);
}

.

+1

Source: https://habr.com/ru/post/1545919/


All Articles