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] DrawingView shows no output without setting LineColor #1452

@jfversluis

Description

@jfversluis

Description

Because the default value of LineColor is Color.Default no line is shown when you don't set it explicitly. This is not a great first-time use experience. I would set it to Color.Black by default so that at least something shows when using this for the first time.

Steps to Reproduce

  1. Implement a DrawingView like below
<xct:DrawingView BackgroundColor="LightGray" HeightRequest="200" Points="{Binding DrawPoints}" DrawingCompletedCommand="{Binding DrawCompleted}" />
  1. Draw on the canvas
  2. Notice how nothing appears

Expected Behavior

Actual Behavior

Basic Information

  • Version with issue: Current nightly
  • Last known good version: N/A
  • IDE: VSMac
  • Platform Target Frameworks:
    • iOS: 14.5
    • Android: Not tested, but since this happens in shared code I expect this to happen here too
    • UWP:

Workaround

Set LineColor property to something explicitly

Reproduction imagery

Reproduction Link

Metadata

Metadata

Assignees

No one assigned

    Labels

    a/DrawingViewbugSomething isn't working. Breaky break.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions