XAML WPF ListBox bug

F

furuya

"ListItem2" selection is normal, but "ListItem1" selection is strange .
Please, Do test by IE.

<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="clr-namespace:System;assembly=mscorlib"
x:Name="Window"
Title="ListBox bug"
Width="300" Height="300" FontSize="20">
<ListBox HorizontalContentAlignment="Center">
<s:String>ListItem1</s:String>
<s:String>ListItem1</s:String>
<s:String>ListItem1</s:String>
<ListBoxItem>ListItem2</ListBoxItem>
<ListBoxItem>ListItem2</ListBoxItem>
<ListBoxItem>ListItem2</ListBoxItem>
</ListBox>
</Page>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top