Home All Groups Group Topic Archive Search About

XAML WPF ListBox bug

Author
18 Oct 2007 10:04 AM
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>

Author
24 Oct 2007 4:27 PM
cokkiy
Maybe it's treat all ListItem1 is one item
Show quote
"furuya" <fur***@engine-room.co.jp> ?$B<LF~>CB)?(B
news:uWGOQ5WEIHA.4028@TK2MSFTNGP05.phx.gbl...
> "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>
>
>
>

AddThis Social Bookmark Button