全部,
我有一个简单的手风琴,有 2 个手风琴项目,每个项目包含 4 个文本框。当我进入手风琴项目时,为什么我不能在手风琴项目中的每个文本框中进行标签?我几乎尝试了从 tabindex 到 TabNavigation='Local' & 'Cycle' 的所有方法。
我希望能够在手风琴项目中的所有文本框之间切换。
要求的代码:
<UserControl x:Class="Pimarc.Silverlight.Commerce.UI.View.TestView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit">
<Grid x:Name="LayoutRoot" Background="White">
<toolkit:Accordion HorizontalAlignment="Left" Margin="30,46,0,0" Name="accordion1" VerticalAlignment="Top" Width="200">
<toolkit:AccordionItem Header="abac" IsTabStop="True" TabNavigation="Cycle">
<StackPanel>
<TextBox Name="textBox1" Width="120" TabIndex="0" />
<TextBox Name="textBox2" Width="120" TabIndex="1" />
<TextBox Name="textBox3" Width="120" TabIndex="2" />
<TextBox Name="textBox4" Width="120" TabIndex="3"/>
</StackPanel>
</toolkit:AccordionItem>
<toolkit:AccordionItem Header="bob">
<StackPanel>
<TextBox Name="textBox5" VerticalAlignment="Top" Width="120" />
<TextBox Name="textBox6" VerticalAlignment="Top" Width="120" />
<TextBox Name="textBox71" VerticalAlignment="Top" Width="120" />
<TextBox Name="textBox81" VerticalAlignment="Top" Width="120" />
</StackPanel>
</toolkit:AccordionItem>
</toolkit:Accordion>
</Grid>