Files
omagoffice/CompoWindow/CompoListPage/CompoListPageV.xaml
T
Emmanuele Sassi 90db656549 OmagOFFICE :
- Aggiunti componenti parametrici con anche componenti interni.
2017-05-05 07:55:07 +00:00

47 lines
1.6 KiB
XML

<UserControl x:Class="CompoListPageV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<DockPanel LastChildFill="False">
<ItemsControl ItemsSource="{Binding CompoList}"
DockPanel.Dock="Top">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Button Command="{Binding DataContext.CompoBtnCommand,
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
CommandParameter="{Binding}"
Style="{StaticResource CompoWindow_Button}"
Focusable="False">
<Grid>
<Image Source="{Binding Image}"/>
<TextBlock Text="{Binding Name}"/>
</Grid>
</Button>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<StackPanel DockPanel.Dock="Bottom">
<ContentControl Content="{Binding CompoManagerControl}"/>
<Button Command="{Binding BackCommand}"
Visibility="{Binding BackVisibility}"
Style="{StaticResource CompoWindow_Button}"
Focusable="False"
Margin="0,0,0,5">
<Image Source="/Resources/MachiningTab/BackArrow.png"/>
</Button>
</StackPanel>
</DockPanel>
</UserControl>