2015-06-26 12:42:20 -04:00
|
|
|
<UserControl x:Class="Filtration.ThemeEditor.Views.ThemeControl"
|
|
|
|
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:viewModels="clr-namespace:Filtration.ThemeEditor.ViewModels"
|
|
|
|
xmlns:views="clr-namespace:Filtration.ThemeEditor.Views"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
d:DataContext="{d:DesignInstance Type=viewModels:ThemeViewModel}"
|
|
|
|
d:DesignHeight="300" d:DesignWidth="300">
|
|
|
|
<Grid>
|
|
|
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled">
|
2015-06-26 16:54:20 -04:00
|
|
|
<ItemsControl ItemsSource="{Binding Components}" Margin="10">
|
2015-06-26 12:42:20 -04:00
|
|
|
<ItemsControl.ItemsPanel>
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
<WrapPanel />
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
</ItemsControl.ItemsPanel>
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
<DataTemplate>
|
2015-06-26 16:54:20 -04:00
|
|
|
<views:ThemeComponentControl DataContext="{Binding}" Margin="10,5,10,5" />
|
2015-06-26 12:42:20 -04:00
|
|
|
</DataTemplate>
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
</ItemsControl>
|
|
|
|
</ScrollViewer>
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|