Files
EgtCAM5/ProjectPage/MachGroupPanel/MachGroupPanelView.xaml
T
Emmanuele Sassi 7186aec547 EgtCAM5 :
- Aggiunta pagina MTables con abbozzo di gestione tabelle.
- Aggiunta gestione della visualizzazione dei gruppi macchina.
- Aggiunta possibilità di eseguire script di disposizione quando si passa in lavorazione.
2016-10-04 09:35:55 +00:00

26 lines
1.2 KiB
XML

<UserControl x:Class="MachGroupPanelView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<UserControl.Resources>
</UserControl.Resources>
<StackPanel Orientation="Horizontal">
<ItemsControl ItemsSource="{Binding MachGroupList}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Button Content="{Binding}" Height="30" MaxWidth="100" Padding="5,0,5,0" ToolTip="{Binding}"
Command="{Binding DataContext.SetCurrMachGroupCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" CommandParameter="{Binding}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<Button Content="+" Height="20" Width="20" VerticalAlignment="Center"
Margin="0,0,5,0" Command="{Binding AddMachGroupCommand}" IsEnabled="False"/>
</StackPanel>
</UserControl>