Files
EgtCAM5/ProjectPage/MachGroupPanel/MachGroupPanelView.xaml
T
Emmanuele Sassi a312eef399 EgtCAM5 :
- Aggiunta possibilità di getire progressbar e output message presenti nella StatusBar da LUA.
- Inizio scrittura della struttura per MTables.
- Aggiunta la possibilità di aggiungere nuovi gruppi di lavorazione.
- Gestita uscita da NewMachiningCmd(in OperationList) con Esc.
2016-10-07 10:14:14 +00:00

53 lines
2.3 KiB
XML

<UserControl x:Class="MachGroupPanelView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<StackPanel Orientation="Horizontal">
<ListBox ItemsSource="{Binding MachGroupList}" SelectedItem="{Binding SelectedMachGroup}"
Style="{StaticResource MachiningGroupListBox}">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel IsItemsHost="True" Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
<ContentPresenter/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ListBox.ItemContainerStyle>
<ListBox.ItemTemplate>
<DataTemplate>
<RadioButton GroupName="MachiningGroups"
Height="30" MaxWidth="150" Margin="0,0,2,0" Padding="5,0,5,0" ToolTip="{Binding}"
Style="{StaticResource {x:Type ToggleButton}}"
Command="{Binding DataContext.SetCurrMachGroupCommand,
RelativeSource={RelativeSource FindAncestor,
AncestorType={x:Type UserControl}}}"
CommandParameter="{Binding}"
IsChecked="{Binding Path=IsSelected, RelativeSource={
RelativeSource AncestorType={x:Type ListBoxItem}},Mode=TwoWay}">
<RadioButton.Content>
<TextBlock Text="{Binding}"/>
</RadioButton.Content>
</RadioButton>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Button Content="+" Height="20" Width="20" VerticalAlignment="Center"
Margin="3,0,5,0" Command="{Binding AddMachGroupCommand}"/>
<Button Content="-" Height="20" Width="20" VerticalAlignment="Center"
Margin="0,0,5,0" Command="{Binding RemoveMachGroupCommand}"/>
</StackPanel>
</UserControl>