Skip to content

SnackBar BorderThickness and BorderBrush not working #3883

Closed

Description

@HedpE-

Bug explanation

When setting BorderThickness and BorderBrush on a SnackBar, these settings aren't reflected on the template as the border doesn't have these properties template bound.

Suggested solution is to implement the following lines to the SnackBar Style, in the Border object:

BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"

Version

5.2.1

Activity

  1. added
    evaluation required
    on Jul 15, 2025
  2. corvinsz commented on Jul 16, 2025

    @corvinsz
    Member

    @HedpE- it indeed seems weird that the SnackBar exposes the 2 properties but doesn't actually use them in it's template.
    In my opinion the change you propose is fine. You are welcome to create a PR for this.

  3. added
    Waiting on feedback
    and removed
    evaluation required
    on Jul 16, 2025
  4. HedpE- commented on Jul 19, 2025

    @HedpE-
    ContributorAuthor

    Sorry for the mess, I'm not very used to GitHub and this was my first PR ever, now everything is fine and clean.

  5. github-actions commented on Aug 19, 2025

    @github-actions
    Contributor

    This issue is marked stale because it has been open 30 days with no activity. Remove stale label or update the issue, otherwise it will be closed in 14 days.

  6. added
    Stale
    on Aug 19, 2025
  7. github-actions commented on Sep 3, 2025

    @github-actions
    Contributor

    This issue was closed because it has been stalled for 14 days with no activity.

  8. reopened this on Sep 3, 2025
  9. removed
    Stale
    on Sep 3, 2025
  10. added this to the 5.3.0 milestone on Sep 3, 2025
  11. removed
    Waiting on feedback
    on Sep 3, 2025
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions