This project has moved and is read-only. For the latest updates, please go here.

CheckListBox: Current Active Item

May 22, 2013 at 8:47 AM
I have a CheckListbox and a label/Textblock.
<xctk:CheckListBox HorizontalAlignment="Left" Margin="20,38,0,94" Name="clbItems" Width="256" 
                           ItemsSource="{Binding ItemsReference,ElementName=AllocatingCheckListBoxControl}"
                           DisplayMemberPath="{Binding DisplayMemberReference, ElementName=AllocatingCheckListBoxControl}"
                           ValueMemberPath="{Binding ItemsReferenceIdColumnName, ElementName=AllocatingCheckListBoxControl}"/>
        <Label HorizontalAlignment="Left" Margin="20,0,0,24" Name="lblDescription" Width="256" Height="64" VerticalAlignment="Bottom">
                <TextBlock Text="{Binding UserGroupRoleDescription}" DataContext="{Binding ElementName=clbItems, Path=SelectedItem}"
                           TextWrapping="Wrap" />
The Label should be filled when the user select a item. Now the text will be only shown, when the user check the item. If he uncheck the item, then the textblock text will be empty

What is the property of the current active Item in the CheckListBox?
May 22, 2013 at 2:55 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
May 22, 2013 at 2:56 PM
I don't have anything in mind beside handling some focus event and detect the focused element (if any)