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

Padding does nothing

3 Answers 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.
Andrii
Top achievements
Rank 1
Andrii asked on 20 Mar 2013, 09:08 PM
Why Padding does nothing in DataBoundListBox?
In the template no one control is bound to {TempateBinding Padding}
But ScrollViewer should:

<ScrollViewer x:Name="PART_ManipulationContainer" Style="{StaticResource ExtendedScrollViewerStyle}" Margin="{TemplateBinding Padding}">

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 21 Mar 2013, 07:28 AM
Hi Andri,

You're correct, this is an undesired behavior and we're going to update it as it should be.

I have updated your account with 1000 Telerik points for bringing our attention to this.

All the best,
Deyan
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Andrii
Top achievements
Rank 1
answered on 23 Mar 2013, 10:43 PM
I didn't test it for WP7, so check it there too.

Also look at PART_EmptyContentPresenter
Blend says that it is not a Canvas

And, maybe, it is better to bind Padding="{TemplateBinding Padding}"
I don't know for now.
0
Deyan
Telerik team
answered on 28 Mar 2013, 07:12 AM
Hello Andrii,

Normally, the Margin property of the root visual of a control should be template-bound to the Padding property of the control.

This is the standard approach.

We will consider this thread closed for now.

Do not hesitate to contact us back in case of further questions.

Regards,
Deyan
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
DataBoundListBox
Asked by
Andrii
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Andrii
Top achievements
Rank 1
Share this question
or