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] ClearOnFinish="True"/ drawingView.Lines.Clear() not working with latest stable version of DrawingView #1893

@monicapatawar

Description

@monicapatawar

Description

The ClearOnFinish property when set to "True", should clear the line drawn over the DrawingView after the line is drawn. It seems this is not functioning with the latest stable version of Xamarin.Community.toolkit(2.0.4).
The DrawingView should get cleared after releasing the tap/click and a line is drawn. The functionality is working fine with the older version of Xamarin.Community.Toolkit(2.0.0).
I am using Xamarin forms version 5.0.0.2291.
Also if you try to clear the drawingview lines from the code behind using the DrawingView.Lines.Clear(), it will not work with this version of Xamarin Community Toolkit.

Stack Trace

Link to Reproduction Sample

Steps to Reproduce

  1. Set the ClearOnFinish property to TRUE for the DrawingView in xaml.
  2. Draw a line
  3. The line will be visible even after completion

Expected Behavior

The DrawingView should get cleared after releasing the tap/click and a line is drawn.

Actual Behavior

The DrawingView is not getting cleared after releasing the tap/click and a line is drawn.

Basic Information

  • Version with issue: 2.0.4
  • Last known good version: 2.0.0
  • IDE: Visual Studio
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
  • Android Support Library Version:
  • Nuget Packages: Xamarin.Community.Toolkit - 2.0.4
  • Affected Devices:

Workaround

For now, the functionality is working fine with Xamarin.Community.Toolkit version 2.0.0/1.3.2

Reproduction imagery

Metadata

Metadata

Labels

a/DrawingViewbugSomething isn't working. Breaky break.needs-reproductionWe're not able to reproduce this ourselves, in need of a reproduction sample showing the issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions