f365dee1c7
- Asterisco in fase di modifica; - salvataggio in caso di cambio porta solo se presente asterisco; - asterisco in fase di creazione nuova porta.
26 lines
995 B
XML
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>
|