90db656549
- Aggiunti componenti parametrici con anche componenti interni.
47 lines
1.6 KiB
XML
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>
|