cbfdc473c2
-aggiunta dell'HardwareManager, -aggiunta della pagina di stampa.
59 lines
2.2 KiB
XML
59 lines
2.2 KiB
XML
<UserControl x:Class="CompoPanelHardwareV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:EgtDOORCreator="clr-namespace:EgtDOORCreator">
|
|
|
|
<UserControl.InputBindings>
|
|
<KeyBinding Key="Enter" Command="{Binding RefreshCmd}"/>
|
|
</UserControl.InputBindings>
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="16*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<ItemsControl ItemsSource="{Binding CompoTypeList}" Focusable="True"
|
|
Visibility="{Binding IsVisible}">
|
|
|
|
<ItemsControl.InputBindings>
|
|
<KeyBinding Key="Enter" Command="{Binding RefreshCmd}"/>
|
|
</ItemsControl.InputBindings>
|
|
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<UniformGrid Columns="1"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<RadioButton GroupName="DoorGroup"
|
|
Style="{StaticResource {x:Type ToggleButton}}"
|
|
CommandParameter="{Binding}"
|
|
Command="{Binding DataContext.CompoBtnCommand,
|
|
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
|
IsChecked="{Binding IsSelectedBtn}">
|
|
<RadioButton.Content>
|
|
<TextBlock Text="{Binding Name}"/>
|
|
</RadioButton.Content>
|
|
</RadioButton>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
|
|
<Button Grid.Row="1"
|
|
Name="GoToAssembly"
|
|
Command="{Binding DataContext.GoToAssemblyBtnCommand,
|
|
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
|
CommandParameter="{Binding}"
|
|
Visibility="{Binding GoBackVisibility}"
|
|
MaxHeight="40"
|
|
Focusable="False">
|
|
<Image Source="/Resources/Refresh/BackArrow.png" Stretch="Uniform"/>
|
|
</Button>
|
|
|
|
</Grid>
|
|
</UserControl>
|