﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - UXListBox &amp; SelectedItem highlighting/visual selection</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXListBox--SelectedItem-highlightingvisual-selection/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>UXListBox &amp; SelectedItem highlighting/visual selection</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXListBox--SelectedItem-highlightingvisual-selection/</link><pubDate>Fri, 19 Jul 2013 02:32:56 GMT</pubDate><dc:creator>yudi</dc:creator><category>UXListBox</category><category>SelectedItem</category><category>UXListBox SelectedItem</category><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Please forgive me for lack of understanding about the reported problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I created a simple Silverlight project based on the described scenario. In my simple project, I have a page which shows UXListBox. The UXListBox control has its &lt;strong&gt;ItemsSource&lt;/strong&gt; and &lt;strong&gt;SelectedItem&lt;/strong&gt; property bind to ViewModel. I also implemented the same &lt;strong&gt;ItemTemplate&lt;/strong&gt; shown in your initial message.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;However, I was unable to reproduce the reported problem in my local end using the simple project. Everything worked smoothly and the visual highlighting/selection work without any issues.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I have the sample project enclosed as attachment. Please have the sample evaluated on your end and feel free to let me know if you find anything that I might miss during my attempt to replicate the problem.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>UXListBox &amp; SelectedItem highlighting/visual selection</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXListBox--SelectedItem-highlightingvisual-selection/</link><pubDate>Thu, 18 Jul 2013 11:47:01 GMT</pubDate><dc:creator>irishbuddha@gmail.com</dc:creator><category>UXListBox</category><category>SelectedItem</category><category>UXListBox SelectedItem</category><description>&lt;p&gt;UXListBox with ItemsSource &amp; SelectedItem binding. The SelectedItem is populated and works flawlessly behind the scenes, but the visual highlighting/selection of it does not work when changing between items, ie I change the ActiveCriteria which has a different .CurrentlySelectedScore. &lt;/p&gt;&lt;p&gt;Are there any known things that get in the way of the SelectedItem being highlighted that I can look for here or something I might just be overlooking? &lt;/p&gt;
&lt;p&gt;Notes:&lt;br /&gt;-Silverlight 5&lt;br /&gt;&lt;span style="font-size: 10pt;"&gt;-Not overriding the visualstate in regards to the listbox at this time, can if that is related to fixing this&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;-I took the contents of the datatemplate and bound it to the same binding as SelectedItem outside of the listbox and everything shows properly, verifying that it is correctly populated and that it changes based on selection of a new selecteditem properly.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;-The only case the visual selection highlight does not show is when changing ActiveCriteria. First pass through it is fine, first/next/prev/last from there is when this occurs.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;UXListBox XAML Below&lt;/p&gt;&lt;pre&gt;&lt;pre&gt;        &amp;lt;Intersoft:UXListBox x:Name="Scores"
                             HorizontalScrollBarVisibility="Disabled"
                             Intersoft:DockPanel.IsFillElement="True"
                             IsEnabled="{Binding ScoringOnlyModeCriteriaSection.AllowScoring}"
                             SelectionMode="Single"
                             ItemsSource="{Binding Section.ActiveCriteria.ScoringDefinitions}"
                             SelectedItem="{Binding &lt;span style="font-size: 9pt;"&gt;Section&lt;/span&gt;&lt;span style="font-size: 9pt;"&gt;.ActiveCriteria.CurrentlySelectedScore, &lt;/span&gt;Mode=TwoWay}"&amp;gt;
            &amp;lt;Intersoft:UXListBox.ItemTemplate&amp;gt;
                &amp;lt;DataTemplate&amp;gt;
                    &amp;lt;Border BorderBrush="Black"
                            BorderThickness="1"
                            CornerRadius="3"&amp;gt;
                        &amp;lt;Grid&amp;gt;
                            &amp;lt;Grid.ColumnDefinitions&amp;gt;
                                &amp;lt;ColumnDefinition Width="Auto" MinWidth="75" /&amp;gt;
                                &amp;lt;ColumnDefinition Width="Auto" MinWidth="75" /&amp;gt;
                                &amp;lt;ColumnDefinition Width="*" /&amp;gt;
                            &amp;lt;/Grid.ColumnDefinitions&amp;gt;
                            &amp;lt;TextBlock Grid.Column="0" Text="{Binding Item.Score}" /&amp;gt;
                            &amp;lt;TextBlock Grid.Column="1" Text="{Binding Item.ShortDefinition}" /&amp;gt;
                        &amp;lt;/Grid&amp;gt;
                    &amp;lt;/Border&amp;gt;
                &amp;lt;/DataTemplate&amp;gt;
            &amp;lt;/Intersoft:UXListBox.ItemTemplate&amp;gt;
        &amp;lt;/Intersoft:UXListBox&amp;gt;
&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;&lt;/pre&gt;</description></item></channel></rss>