Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <UserControl x:Class="CustomControl.MainPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:customControl="clr-namespace:CustomControl"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:sectionControl="clr-namespace:SectionControl;assembly=SectionControl"
- d:DataContext="{d:DesignInstance customControl:MainPage}"
- d:DesignHeight="300"
- d:DesignWidth="385"
- mc:Ignorable="d">
- <UserControl.Resources>
- <DataTemplate x:Key="ProductTemplate" DataType="sectionControl:Good">
- <Border Width="{Binding Width}"
- Height="{Binding Height}"
- BorderBrush="Green"
- BorderThickness="3"
- CornerRadius="3">
- <Rectangle Fill="Indigo" />
- </Border>
- </DataTemplate>
- <DataTemplate x:Key="SectionTemplate" DataType="sectionControl:Section">
- <sectionControl:SectionControl AngleFlowDirection="{Binding ElementName=_combo, Path=SelectionBoxItem}"
- Background="LawnGreen"
- ContentItemTemplate="{StaticResource ProductTemplate}"
- DepthItemsNumber="2"
- HorizontalItemsNumber="{Binding FacingX}"
- InnerObject="{Binding Good}"
- VertialItemsNumber="{Binding FacingY}" />
- </DataTemplate>
- <DataTemplate x:Key="ShelfTemplate" DataType="Shelf">
- <ShelfControl Width="{Binding Width}"
- Height="{Binding Height}"
- AlignmentType="{Binding AlignmentType}"
- BottomMargin="{Binding BottomMargin}"
- LeftMargin="{Binding LeftMargin}"
- SectionTemplate="{StaticResource SectionTemplate}"
- Thikness="{Binding Thikness}"
- Tilt="{Binding Tilt}" />
- </DataTemplate>
- </UserControl.Resources>
- <Grid>
- <PlanogramControl Name="{Binding Name}"
- Width="{Binding Width}"
- Height="{Binding Height}"
- DataContext="{Binding SelectedShopEquipment}"
- Depth="{Binding Depth}"
- ShelfItemTempale="{StaticResource ShelfTempalte}"
- Shelves="{Binding Shelves}"
- Type="{Binding ShopEquipmentType}" />
- </Grid>
- </UserControl>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement