Files
EgtDOORCreator/CompoPanel/CompoPanelView.xaml
T
Nicola Pievani f365dee1c7 EgtDOORCreator 1.8d1 :
- Asterisco in fase di modifica;
- salvataggio in caso di cambio porta solo se presente asterisco;
- asterisco in fase di creazione nuova porta.
2017-04-06 18:17:33 +00:00

26 lines
995 B
XML

<UserControl x:Class="CompoPanelView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ItemsControl ItemsSource="{Binding CompoTypeList}">
<ItemsControl.InputBindings>
<KeyBinding Key="Enter" Command="{Binding RefreshCmd}"/>
</ItemsControl.InputBindings>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="1"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Button Name="Compo" Content="{Binding Name}"
Command="{Binding DataContext.CompoBtnCommand,
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
CommandParameter="{Binding}"
Focusable="False"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</UserControl>