Skip to content

Default Margin of every Control in Tlp #265

Closed

Description

@itg-assistant

Corvin asked 2016-09-16 22:57:46 UTC

Is it possible to set the Default MarginRight-Property of every Control which is a ChildControl of a TableLayoutPanel ?

Have tried to set the Default MarginRight via Theme-Designer of each Control we need . Have added the Theme an changed Theme in web.config. Margin of each Control is still [3, 3, 3, 3]. All other changes I made are applied.

Best Regards

Corvin

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2016-09-16 23:31:18 UTC

    The margin on the control is not the same as the margin in the theme. The margin in the theme is used by the widgets to manage the layout inside the widget. The layout of the controls in panel is managed by the server and is not a themeable property.

    For example, if you set the margin in a theme for the textfield inside a combobox, the margin is applied to the widget since the widget as a whole is managed by the javascript library. While the Margin property of the controls is managed by the Default layout engine, or the Flow layout engine, or the Table layout engine.

    I have to see if we can read the property applied to the top level appearance and use it in the control as the default value. Will log as an enhancement.

    Bes,

    Luca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions