This is a migrated thread and some comments may be shown as answers.

Item width 100% screnn

1 Answer 35 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nbj
Top achievements
Rank 1
Nbj asked on 29 Jan 2014, 11:22 AM
1. I use DataBoundListBox
2. I use datatemplate selector in this control.
3. if I use datatemplate selector for items in this, the items aren't 100% screen width (horizontal aligment stretch)
4. Qestion is What I should to do?

In normal ListBox I can:
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch"></Setter>
</Style>
</ListBox.ItemContainerStyle>

but code bellow doesn't work

<telerikPrimitives:RadDataBoundListBox.ItemContainerStyle>
                            <Style TargetType="telerikPrimitives:RadDataBoundListBoxItem">
                                <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                            </Style>
                        </telerikPrimitives:RadDataBoundListBox.ItemContainerStyle>

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 31 Jan 2014, 02:39 PM
Hello Nbj,

Thank you for contacting us. I was unable to reproduce the issue you described. Could you please take a look at the attached project and let me know if I am missing anything.

Regards,
Kiril Stanoev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
Tags
DataBoundListBox
Asked by
Nbj
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or