Files
EgtDOORCreator/CompoPanel/CompoPanelView.xaml
T
Nicola Pievani aa367c4345 EgtDOORCreator :
- Passaggio a lettura intestazione file DDF per avere i parametri dei componenti.
2017-02-02 09:17:03 +00:00

22 lines
831 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.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="1"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Button Content="{Binding Name}"
Command="{Binding DataContext.CompoBtnCommand,
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
CommandParameter="{Binding}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</UserControl>