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

[Bug] Clipboard.HasText always appears to return true #1321

@gceaser

Description

@gceaser

Description

When running a UWP Xamarin forms projects, the Clipboard.HasText property always returns true.

Steps to Reproduce

  1. Implement Clipboard.HasText in your project
  2. set a break point in your code on the line that checks the Clipboard.HasText property
  3. run the application and hit the breakpoint in step 2.
  4. before evaluating the Clipboard.HasText property, open a command window and clear the clipboard using the following command:
    echo off | clip
  5. verify the clipboard is empty by opening notepad and pressing ctrl+v. Nothing should be pasted into the notepad document as the clipboard is empty.
  6. Execute the line of code the evaluates the Clipboard.HasText property and it will still return true.

Expected Behavior

the Clipboard.HasText property should return false.

Actual Behavior

the Clipboard.HasText property always returns true.

Basic Information

  • Version with issue: 1.5.3.2
  • Last known good version:
  • IDE: Visual Studio 2019 Pro on Windows
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Screenshots

Reproduction Link

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions