Padding does nothing

4 posts, 0 answers
  1. Andrii
    Andrii avatar
    4 posts
    Member since:
    Nov 2011

    Posted 20 Mar 2013 Link to this post

    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}">

  2. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 21 Mar 2013 Link to this post

    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.
  3. DevCraft banner
  4. Andrii
    Andrii avatar
    4 posts
    Member since:
    Nov 2011

    Posted 23 Mar 2013 Link to this post

    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.
  5. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 28 Mar 2013 Link to this post

    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.
Back to Top
DevCraft banner