Click here to Skip to main content
15,889,827 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I am using ExtendedListBox in which when i select the perticular item in the list box it is selected but when i click outside or in the blank space of the list box the first item get rectangular border. I want to avoid that border.
there is no facility for sending attachment with the question otherwise i will sen you the image regarding my issue.

<local:extendedlistbox x:name="extListBox" itemssource="{Binding Data}" selectionmode="Extended" clickonselecteditemaction="KeepSelectionIfItemSelected" xmlns:x="#unknown" xmlns:local="#unknown">
            <local:extendedlistbox.itemtemplate>
                <datatemplate>
                    <textblock text="{Binding UserName}"></textblock>
                </datatemplate>
            </local:extendedlistbox.itemtemplate>
        </local:extendedlistbox>

Thanks,
Umesh Tayade
Posted
Updated 24-Jun-11 1:27am
v3

1 solution

I would guess it's the focus rectangle you are referring to. It should go away when the listbox loses focus. How you choose to deal with that depends on your needs....See here[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900