Files
icarus/Icarus/ReferencePanel/ReferencePanelV.xaml
T
Emmanuele Sassi ffebc08a20 - Introdotto riferimento
- correzione per titolo finestra
2022-09-13 08:44:31 +02:00

84 lines
3.8 KiB
XML

<UserControl x:Class="ReferencePanelV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Border Style="{StaticResource LeftPanelPopup_Border}">
<ListBox ItemsSource="{Binding ReferenceList}"
SelectedItem="{Binding SelReference}">
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBoxItem}">
<ContentPresenter />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ListBox.ItemContainerStyle>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Rows="3"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<RadioButton Content="{Binding sText}"
IsChecked="{Binding IsSelected,RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"
FontSize="40"
Style="{StaticResource OptionPanel_NestingToggleButton}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Border>
<!--<UniformGrid Grid.Column="1"
Grid.Row="1"
Rows="3">
<RadioButton Content="┌"
IsChecked="{Binding ReferenceList[0], Mode=TwoWay}"
GroupName="Reference"
FontSize="40"
Style="{StaticResource OptionPanel_NestingToggleButton}"/>
<RadioButton Content="┬"
IsChecked="{Binding ReferenceList[4], Mode=TwoWay}"
GroupName="Reference"
FontSize="40"
Style="{StaticResource OptionPanel_NestingToggleButton}"/>
<RadioButton Content="┐"
IsChecked="{Binding ReferenceList[1], Mode=TwoWay}"
GroupName="Reference"
FontSize="40"
Style="{StaticResource OptionPanel_NestingToggleButton}"/>
<RadioButton Content="├"
IsChecked="{Binding ReferenceList[5], Mode=TwoWay}"
GroupName="Reference"
FontSize="40"
Style="{StaticResource OptionPanel_NestingToggleButton}"/>
<RadioButton Content="┼"
IsChecked="{Binding ReferenceList[8], Mode=TwoWay}"
GroupName="Reference"
FontSize="40"
Style="{StaticResource OptionPanel_NestingToggleButton}"/>
<RadioButton Content="┤"
IsChecked="{Binding ReferenceList[6], Mode=TwoWay}"
GroupName="Reference"
FontSize="40"
Style="{StaticResource OptionPanel_NestingToggleButton}"/>
<RadioButton Content="└"
IsChecked="{Binding ReferenceList[2], Mode=TwoWay}"
GroupName="Reference"
FontSize="40"
Style="{StaticResource OptionPanel_NestingToggleButton}"/>
<RadioButton Content="┴"
IsChecked="{Binding ReferenceList[7], Mode=TwoWay}"
GroupName="Reference"
FontSize="40"
Style="{StaticResource OptionPanel_NestingToggleButton}"/>
<RadioButton Content="┘"
IsChecked="{Binding ReferenceList[3], Mode=TwoWay}"
GroupName="Reference"
FontSize="40"
Style="{StaticResource OptionPanel_NestingToggleButton}"/>
</UniformGrid>-->
</UserControl>