29 lines
1.5 KiB
XML
29 lines
1.5 KiB
XML
<UserControl x:Class="HandyControlDemo.UserControl.GeometryDemoCtl"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
xmlns:userControl="clr-namespace:HandyControlDemo.UserControl"
|
|
DataContext="{Binding RelativeSource={RelativeSource Self}}"
|
|
Background="{DynamicResource RegionBrush}">
|
|
<hc:TransitioningContentControl>
|
|
<ListBox Effect="{StaticResource EffectShadow2}" Margin="32" BorderThickness="0" Style="{StaticResource ListBoxCustom}" Background="Transparent" ItemsSource="{Binding GeometryItems}">
|
|
<ListBox.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<hc:HoneycombPanel>
|
|
<hc:HoneycombPanel.RenderTransform>
|
|
<TransformGroup>
|
|
<TranslateTransform X="-32"/>
|
|
</TransformGroup>
|
|
</hc:HoneycombPanel.RenderTransform>
|
|
</hc:HoneycombPanel>
|
|
</ItemsPanelTemplate>
|
|
</ListBox.ItemsPanel>
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<userControl:GeometryItem Info="{Binding}"/>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</hc:TransitioningContentControl>
|
|
</UserControl>
|