Skip to content

StrokeDashArray on Border does not reset when set to null #29898

@HarishKumarSF4517

Description

@HarishKumarSF4517

Description

When a Border.StrokeDashArray is initially set to a dash pattern (e.g., { 4, 2 }) and then later updated to null, the dash pattern remains visually applied. The property change does not reflect in the UI as expected.

Expected Behavior

  • Setting StrokeDashArray = null on a Border should remove the dash pattern and render the border with a solid stroke.

Actual Behavior

  • Once a dash pattern is applied to StrokeDashArray, setting it to null does not clear the pattern.
  • The previous StrokeDashArray values are still visually applied.

Link to public reproduction project repository

No response

Version with bug

9.0.70

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

iOS, macOS, Android and Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions