View Issue Details

IDProjectCategoryView StatusLast Update
0002315NoesisGUIC# SDKpublic2023-03-09 19:46
Reporteranton.sodergren_pdx Assigned Tosfernandez  
PrioritynormalSeveritymajorReproducibilityalways
Status assignedResolutionopen 
Product Version3.0.11 
Target Version3.1.7 
Summary0002315: CollectionSortBehavior outputs empty collection in Blend
DescriptionWhen using CollectionSortBehavior to display collections as sorted, the displayed collection is completely empty when showing it in Blend. Even if the source collection of the behavior is populated with data, when an ItemsControl has its ItemsSource bound to the CollectionSortBehavior, the displayed list will be completely empty.

This works fine when displaying the GUI in the real application (in C++), but not in Blend.

See this forum post: https://www.noesisengine.com/forums/viewtopic.php?f=3&t=2574&p=14055#p14051
Steps To Reproduce1. Add a CollectionSortBehavior to a window XAML file, like this:
<b:Interaction.Behaviors>
    <noesis:CollectionSortBehavior x:Name="SortBehavior"
        ItemsSource="{Binding MyCollection}"
        Comparer="{Binding MyComparer}" />
</b:Interaction.Behaviors>

2. Make sure that MyCollection is a collection populated with data and that MyComparer is a valid comparer object.

3. Bind the source collection to a list view, like this:
<ListView x:Name="MyListView" ItemsSource="{Binding MyCollection}" />

4. View the list view in the designer window, or start the application within Blend to preview how it looks.
5. Notice that the data of the collection is properly displayed in the list view.
6. Change the list view so that it is instead bound to the output of the CollectionSortBehavior, like this:
<ListView x:Name="MyListView" ItemsSource="{Binding SortedItems, ElementName=SortBehavior}" />

7. View how the list view looks and notice that the list view is now instead displayed as empty.
8. Start the real Noesis application.
9. Notice that the list view is now properly displayed, with sorting applied.
TagsNoesis.GUI.Extensions
PlatformAny

Relationships

related to 0002337 assignedsfernandez predicates store the itemsource, which kind of makes hard to reuse 

Activities

jsantos

jsantos

2022-03-28 20:16

manager   ~0007882

Sorry for the delay on this. Team is still traveling back from GDC.

By the way @sfernandez, I don't know if apart from fixing this we should also implement CollectionView at some point.

Issue History

Date Modified Username Field Change
2022-03-25 09:38 anton.sodergren_pdx New Issue
2022-03-25 09:38 anton.sodergren_pdx Tag Attached: Noesis.GUI.Extensions
2022-03-28 20:15 jsantos Assigned To => sfernandez
2022-03-28 20:15 jsantos Status new => assigned
2022-03-28 20:15 jsantos Target Version => 3.1.5
2022-03-28 20:16 jsantos Note Added: 0007882
2022-04-28 13:52 sfernandez Relationship added related to 0002337
2022-06-24 17:21 sfernandez Target Version 3.1.5 => 3.1.6
2022-11-07 17:14 sfernandez Target Version 3.1.6 => 3.1.7