Note that there are some explanatory texts on larger screens.

plurals
  1. POSemantic Zoom shows no results
    primarykey
    data
    text
    <p>After many attempts to run this functionality finally I got absolutely lost. Only the group headers are shown and only in ZoomInView. Where I'm wrong? All my data is loaded from web api services, but I think that the CollectionViewSource is observable and this will not be the source of the problem.</p> <p>These are my poco classes</p> <pre><code>public class StopInformation { public string Name { get; set; } public string Number { get; set; } } public class ScheduleDirection { public string Direction { get; set; } public IEnumerable&lt;StopInformation&gt; Stops { get; set; } } </code></pre> <p>ViewModel Member</p> <pre><code>public ObservableCollection&lt;ScheduleDirection&gt; Directions { get; set; } </code></pre> <p>In my page xaml resources</p> <pre><code>&lt;CollectionViewSource x:Name="cvs" IsSourceGrouped="true" Source="{Binding Directions}" /&gt; </code></pre> <p>And the semantic zoom code:</p> <pre><code>&lt;SemanticZoom x:Name="semanticZoom"&gt; &lt;SemanticZoom.ZoomedOutView&gt; &lt;GridView ItemsSource="{Binding Path=View.CollectionGroups, Source={StaticResource cvs}}" ScrollViewer.IsHorizontalScrollChainingEnabled="False"&gt; &lt;GridView.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;TextBlock Text="{Binding Direction}"/&gt; &lt;/DataTemplate&gt; &lt;/GridView.ItemTemplate&gt; &lt;GridView.ItemsPanel&gt; &lt;ItemsPanelTemplate&gt; &lt;WrapGrid /&gt; &lt;/ItemsPanelTemplate&gt; &lt;/GridView.ItemsPanel&gt; &lt;/GridView&gt; &lt;/SemanticZoom.ZoomedOutView&gt; &lt;SemanticZoom.ZoomedInView&gt; &lt;GridView ItemsSource="{Binding Source={StaticResource cvs}}" IsSwipeEnabled="True" ScrollViewer.IsHorizontalScrollChainingEnabled="False"&gt; &lt;GridView.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;TextBlock Text="{Binding Name}" /&gt; &lt;/DataTemplate&gt; &lt;/GridView.ItemTemplate&gt; &lt;GridView.GroupStyle&gt; &lt;GroupStyle&gt; &lt;GroupStyle.HeaderTemplate&gt; &lt;DataTemplate&gt; &lt;TextBlock Text='{Binding Direction}' /&gt; &lt;/DataTemplate&gt; &lt;/GroupStyle.HeaderTemplate&gt; &lt;GroupStyle.ContainerStyle&gt; &lt;Style TargetType="GroupItem"&gt; &lt;Setter Property="Template"&gt; &lt;Setter.Value&gt; &lt;ControlTemplate TargetType="GroupItem"&gt; &lt;StackPanel Orientation="Vertical"&gt; &lt;ContentPresenter Content="{TemplateBinding Content}" /&gt; &lt;ItemsControl x:Name="ItemsControl" ItemsSource="{Binding Stops}" /&gt; &lt;/StackPanel&gt; &lt;/ControlTemplate&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;/Style&gt; &lt;/GroupStyle.ContainerStyle&gt; &lt;/GroupStyle&gt; &lt;/GridView.GroupStyle&gt; &lt;Button Visibility="Collapsed"/&gt; &lt;/GridView&gt; &lt;/SemanticZoom.ZoomedInView&gt; &lt;/SemanticZoom&gt; </code></pre> <p>Accept any ideas.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload