Skip to content

TextBlockEditor : Use Label instead of TextBlock to allow customizing template #1539

Description

@Nfactor26

Issue Description

  1. TextBlockEditor : TypeEditor<TextBlock> is used in PropertyGrid for displaying readonly properties.
    However, TextBlock control in WPF doesn't allow to override it's Template using a style.
  2. Margin is set to (5,0,0,0) from inside SetControlProperties() of TextBlockEditor which takes precedence over any margin applied from style.

Suggested Solution
Use a Label control instead of TextBlock control for displaying readonly properties since WPF Label control allows overriding it's control template using a style.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions