2016-01-31 09:11:30 -05:00
|
|
|
<UserControl x:Class="Filtration.ItemFilterPreview.UserControls.LootExplosionSceneUserControl"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:local="clr-namespace:Filtration.ItemFilterPreview.UserControls"
|
2016-08-20 10:42:59 -04:00
|
|
|
xmlns:model="clr-namespace:Filtration.ObjectModel;assembly=Filtration.ObjectModel"
|
2016-01-31 09:11:30 -05:00
|
|
|
mc:Ignorable="d"
|
|
|
|
d:DesignHeight="300" d:DesignWidth="300" d:DataContext="{d:DesignInstance local:LootExplosionSceneUserControl}">
|
|
|
|
<Grid Background="DimGray">
|
2016-08-20 10:42:59 -04:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Button Grid.Row="0" Click="ButtonBase_OnClick">Test Canvas</Button>
|
|
|
|
<ItemsControl Grid.Row="1" ItemsSource="{Binding FilteredItems}" x:Name="FilteredItemsControl" Height="800">
|
2016-01-31 09:11:30 -05:00
|
|
|
<ItemsControl.ItemsPanel>
|
|
|
|
<ItemsPanelTemplate>
|
2016-08-20 10:42:59 -04:00
|
|
|
<Canvas />
|
2016-01-31 09:11:30 -05:00
|
|
|
</ItemsPanelTemplate>
|
|
|
|
</ItemsControl.ItemsPanel>
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
<DataTemplate DataType="{x:Type model:IFilteredItem}">
|
|
|
|
<local:ItemControl FilteredItem="{Binding}" />
|
|
|
|
</DataTemplate>
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
</ItemsControl>
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|