Log in   Register a New Account

Accessify Forum - Discuss Website Accessibility

New to the forum?

Only an email address is required.

Register Here

Already registered? Log In

Currently Online

No registered users are online.

Accessibilty of listbox Textblock

  • Reply to topic
  • Post new topic
Reply with quote Hi all,

We are using silverlight 4,VS 2010.We have a listbox in which a textblock is used .How can i give automation name to the textblock.We dont want to change that textblock to any other control.

<ListBox x:Name="lstDetailed" KeyDown="TablstDetailed_KeyDown" TabIndex="2" HorizontalAlignment="Left" Margin="0" Width="{Binding ActualWidth, ElementName=stackPanel, Mode=OneWay}" BorderBrush="{x:Null}" ItemsSource="{Binding}" MouseLeftButtonDown="lstOverview_MouseLeftButtonDown" SelectionMode="Single" VerticalAlignment="Top" Style="{StaticResource ListBoxStyle}">
<ListBox.ItemTemplate>
<DataTemplate>
<Canvas Height="30" Width="30">
<Image x:Name="imgDetail" Height="30" Width="30" Source="{Binding imgURL}" />
<TextBlock x:Name="txtDetailed" Text="{Binding Name}" Canvas.Left="30" MouseEnter="txtOverView_MouseEnter" MouseLeave="txtOverView_MouseLeave" />
<Rectangle Fill="#AFFFFFFF" Height="30" Width="1000" Visibility="{Binding IsActive, Converter={StaticResource Visbility}}" />
</Canvas>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>

Please guide me....Thanks in advance

Display posts from previous:   

All times are GMT

  • Reply to topic
  • Post new topic