Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] Binding SwipeView IsEnabled Property Doesn't Work (iOS & Android) #12962

@darrabam

Description

@darrabam

Description

I'm trying to control SwipeView programmatically so that based on specific conditions it gets enabled/disabled. Binding the IsEnabled property doesn't seem to work.

Note that hardcoding IsEnabled to "True/False" in the xaml does work as expected. It misbehaves when binded to a value.

Steps to Reproduce

Bind SwipeView IsEnabled property.

Expected Behavior

SwipeView should bind to the property and act accordingly i.e. when IsEnabled = False, it should not open when swiped.

Actual Behavior

It ignores the binding value.

Basic Information

  • Version with issue: XF4.8 & XF5.x (Pre)
  • Last known good version: Don't know
  • Platform Target Frameworks:
    • iOS: 14.2
    • Android: 11
  • Affected Devices: Emulators

Environment

Microsoft Visual Studio Community 2019 Version 16.8.2

Screenshots

ezgif com-gif-maker (3)

Reproduction Link

https://github.com/darrabam/SwipeBindingBug

Workaround

Don't know.

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