Skip to content

Background and BackgroundColor behave differently in CollectionView selection #32348

@Vignesh-SF3580

Description

@Vignesh-SF3580

Description

When using Background and BackgroundColor in a CollectionView with VSM, the two properties apply differently.

When changing the selection via VSM, the selection fill is applied fully with Background, but with BackgroundColor the fill is constrained to the control’s clipped/bordered area.

With Background:

Image

With BackgroundColor:

Image

Expected: Both properties should behave similarly.

Steps to Reproduce

  1. Run the attached sample. Sample.zip
  2. Select the items and observe the selection behavior.
  3. Then change the VisualState from BackgroundColor to Background.
  4. Select the items and observe the selection behavior.

Link to public reproduction project repository

No response

Version with bug

10.0.0-rc.2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions