e67c79992c
- cambiate icone Reference - aggiunte icone in slice manager - spostato Update in TFS vicino a Reset
76 lines
3.7 KiB
XML
76 lines
3.7 KiB
XML
<UserControl x:Class="ReferencePanelV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:PrintApp="clr-namespace:Icarus">
|
|
<Border Padding="2.5"
|
|
Style="{StaticResource LeftPanel_PopupButton_Border}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<ListBox ItemsSource="{Binding ReferenceList}"
|
|
SelectedItem="{Binding ghSelReference}"
|
|
BorderThickness="0"
|
|
Margin="0"
|
|
Padding="0">
|
|
<ListBox.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<UniformGrid Rows="3"
|
|
Margin="0"/>
|
|
</ItemsPanelTemplate>
|
|
</ListBox.ItemsPanel>
|
|
<ListBox.ItemContainerStyle>
|
|
<Style TargetType="ListBoxItem">
|
|
<Setter Property="Margin" Value="0"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ListBoxItem}">
|
|
<ContentPresenter />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ListBox.ItemContainerStyle>
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<PrintApp:CheckedImageRadioButton IsChecked="{Binding IsSelected,RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"
|
|
ImageSource="{Binding sText}"
|
|
CheckedImageSource="{Binding sSelText}"
|
|
FontSize="40"
|
|
GroupName="ReferenceRadio"
|
|
Margin="2.5,2.5,2.5,2.5">
|
|
<!--<RadioButton.Resources>
|
|
<DataTemplate x:Key="Normal">
|
|
<Image Source="{Binding sText}"
|
|
Style="{StaticResource Button_Image}"/>
|
|
</DataTemplate>
|
|
<DataTemplate x:Key="Selected">
|
|
<Image Source="{Binding sSelText}"
|
|
Style="{StaticResource Button_Image}"/>
|
|
</DataTemplate>
|
|
</RadioButton.Resources>
|
|
<RadioButton.Style>
|
|
<Style TargetType="{x:Type RadioButton}" BasedOn="{StaticResource OptionPanel_NestingToggleButton}">
|
|
<Setter Property="ContentTemplate" Value="{StaticResource Normal}"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Setter Property="ContentTemplate" Value="{StaticResource Selected}"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</RadioButton.Style>-->
|
|
</PrintApp:CheckedImageRadioButton>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
<RadioButton Grid.Row="1"
|
|
Content="From Import"
|
|
IsChecked="{Binding FromImport_IsChecked}"
|
|
GroupName="ReferenceRadio"
|
|
Margin="2.5"
|
|
Style="{StaticResource OptionPanel_ToggleButton}"/>
|
|
</Grid>
|
|
</Border>
|
|
</UserControl>
|