tags:

views:

350

answers:

3

Hi.. I'm using the following .. but the underline does nothing.. thanks in advance

+1  A: 

I don't know what code you are trying to use. Please try to complete your question. I've used the following code to underline the 'World' item in my little ListBox.

    <ListBox>
        <ListBoxItem>Hello</ListBoxItem>
        <ListBoxItem>
            <Underline>World</Underline>
        </ListBoxItem>
    </ListBox>
Smazy
A: 

You can use a textblock, and set the textdecorations property to underline. Remember the contents of a ListBoxItem can be things other than text, hence why it's not a simple case of setting some property on the ListBoxItem.

dhopton
A: 

You will need to create an item template that displays your text in a TextBlock control. On the TextBlock, set the TextDecorations property (which is a collection) to contain 'Underline'.

NigelTufnel