aa367c4345
- Passaggio a lettura intestazione file DDF per avere i parametri dei componenti.
22 lines
831 B
XML
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>
|