Skip to content

Instantly share code, notes, and snippets.

@wtuts
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtuts/2fde1fa7f5bce8e7144a to your computer and use it in GitHub Desktop.
Save wtuts/2fde1fa7f5bce8e7144a to your computer and use it in GitHub Desktop.
Hub tiles -Part 2
<ListBox x:Name="mylistbox" Margin="10,0,0,97">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<toolkit:WrapPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Height="190" Width="190" HorizontalAlignment="Left" VerticalAlignment="Top">
<toolkit:HubTile Title="{Binding title}" Notification="{Binding notification}" Source="{Binding source}" GroupTag="{Binding tag}" Height="173" Width="173" Margin="0,8,0,0" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Button Content="Freeze tiles" HorizontalAlignment="Left" Margin="10,527,0,0" VerticalAlignment="Top" Width="202" Height="80" Click="freezetilesbuttonclick"/>
<Button Content="Unfreeze tiles" HorizontalAlignment="Right" Margin="0,527,24,0" VerticalAlignment="Top" Width="202" Height="80" Click="Unfreezetilesbuttonclick"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment