Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to achieve SematicZoom like Windows App Store in Windows store app?
    primarykey
    data
    text
    <p>In Windows App Store, Zoom Out will show like this.</p> <p><img src="https://i.stack.imgur.com/zg6Xo.jpg" alt="enter image description here"></p> <p>When zoom in, it will show like this.</p> <p><img src="https://i.stack.imgur.com/sJgjD.png" alt="enter image description here"></p> <p>Zoom Out I can achieve it use GridView, but how to achieve Zoom in effect that reflecting the category?? Is there any example??</p> <p>Here is added .xaml code:</p> <pre><code>&lt;SemanticZoom Grid.Row="1" x:Name="SemanticZoom"&gt; &lt;SemanticZoom.ZoomedOutView&gt; &lt;GridView x:Name="ZoomedOutGV" SelectionMode="None" ScrollViewer.IsHorizontalScrollChainingEnabled="False" ItemsSource="{Binding Source={StaticResource cvs1}}"&gt; &lt;GridView.ItemsPanel&gt; &lt;ItemsPanelTemplate&gt; &lt;WrapGrid ItemHeight="200" ItemWidth="400" MaximumRowsOrColumns="1" VerticalChildrenAlignment="Center" /&gt; &lt;/ItemsPanelTemplate&gt; &lt;/GridView.ItemsPanel&gt; &lt;GridView.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;TextBlock Text="{Binding Group.Key}" FontFamily="Segoe UI Light" FontSize="40"/&gt; &lt;/DataTemplate&gt; &lt;/GridView.ItemTemplate&gt; &lt;GridView.ItemContainerStyle&gt; &lt;Style TargetType="GridViewItem"&gt; &lt;Setter Property="Margin" Value="4" /&gt; &lt;Setter Property="Padding" Value="10" /&gt; &lt;Setter Property="BorderBrush" Value="Gray" /&gt; &lt;Setter Property="BorderThickness" Value="1" /&gt; &lt;Setter Property="HorizontalContentAlignment" Value="Center" /&gt; &lt;Setter Property="VerticalContentAlignment" Value="Center" /&gt; &lt;/Style&gt; &lt;/GridView.ItemContainerStyle&gt; &lt;/GridView&gt; &lt;/SemanticZoom.ZoomedOutView&gt; &lt;SemanticZoom.ZoomedInView&gt; &lt;GridView x:Name="ZoomedInGV" SelectionMode="None" ItemsSource="{Binding Source={StaticResource cvs1}}" ItemTemplate="{StaticResource GridViewItemTemplate}" ItemContainerStyleSelector="{StaticResource VariableSizedStyleSelector}" IsItemClickEnabled="True" ItemClick="Course_ItemClick"&gt; &lt;GridView.ItemsPanel&gt; &lt;ItemsPanelTemplate&gt; &lt;VirtualizingStackPanel Orientation="Horizontal"/&gt; &lt;/ItemsPanelTemplate&gt; &lt;/GridView.ItemsPanel&gt; &lt;GridView.GroupStyle&gt; &lt;GroupStyle&gt; &lt;GroupStyle.HeaderTemplate&gt; &lt;DataTemplate&gt; &lt;Button Style="{StaticResource TextPrimaryButtonStyle}" Height="90" Margin="100, 0, 100, 0" Click="CategoryButton_Click"&gt; &lt;StackPanel Orientation="Horizontal"&gt; &lt;TextBlock Text="{Binding Key}" Style="{StaticResource HeaderTemplateKeyTextBlockStyle}"/&gt; &lt;TextBlock Text="{StaticResource ChevronGlyph}" Style="{StaticResource HeaderTemplateRightRowTextBlockStyle}"/&gt; &lt;/StackPanel&gt; &lt;/Button&gt; &lt;/DataTemplate&gt; &lt;/GroupStyle.HeaderTemplate&gt; &lt;GroupStyle.Panel&gt; &lt;ItemsPanelTemplate&gt; &lt;VariableSizedWrapGrid Style="{StaticResource VariableSizedWrapGridTemplateStyle}" /&gt; &lt;/ItemsPanelTemplate&gt; &lt;/GroupStyle.Panel&gt; &lt;/GroupStyle&gt; &lt;/GridView.GroupStyle&gt; &lt;/GridView&gt; &lt;/SemanticZoom.ZoomedInView&gt; &lt;/SemanticZoom&gt; </code></pre> <p>C# code:</p> <pre><code>cvs1.Source = dataCategory; (SemanticZoom.ZoomedOutView as ListViewBase).ItemsSource = cvs1.View.CollectionGroups; </code></pre>
    singulars
    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