wsick / Fayde

Inspired by Silverlight; XAML engine using Javascript and rendering to the HTML5 Canvas.
MIT License
189 stars 27 forks source link

List box SelectionMode="Multiple" not working #177

Closed deepaksm1 closed 8 years ago

deepaksm1 commented 8 years ago

List box SelectionMode="Multiple" not working. Checked in Firefox and IE.

  <ListBox x:Name="MyListBox" Width="200" Height="100" HorizontalAlignment="Center" VerticalAlignment="Center" SelectionMode="Multiple">
            <ListBoxItem Content="Text 1" />
            <ListBoxItem Content="Text 2" />
            <ListBoxItem Content="Text 3" />
            <ListBoxItem Content="Text 4" />
            <ListBoxItem Content="Text 5" />
            <ListBoxItem Content="Text 6" />
            <ListBoxItem Content="Text 7" />
            <ListBoxItem Content="Text 8" />
            <ListBoxItem Content="Text 9" />
            <ListBoxItem Content="Text 10" />
        </ListBox>
BSick7 commented 8 years ago

Selection is working fine, but the visuals aren't reflecting. The default theme for ListBoxItem has a blank visual state for SelectedUnfocused. When an item went out of focus, the style would clear any visuals. Duplicating Selected visual state for SelectedUnfocused.

BSick7 commented 8 years ago

Fixed in v0.16.56.