Skip to content

Deprecate and hide from Intellisense APIs that always return null, like Window.Current #1660

Open
@andrewleader

Description

@andrewleader

Describe the bug

There are several APIs in our API surface that always return null and confuse developers, like Window.Current and also Window.Dispatcher and more. The presence of these non-functional APIs makes it more difficult to code and more difficult to migrate from UWP, since any developer would expect these APIs to work since they're there, but they actually just return null.

These APIs only worked in UWP, which was why we had them, but we need to clean up the API surface.

Expected behavior
These APIs should be removed, or at least marked deprecated. Since we're not going to be able to remove these before 1.0 GA and removing would be a breaking change, we're planning on marking them deprecated and hiding them from intellisense in 1.0 servicing or 1.1, and then removing in 2.0 with #1776.

Metadata

Metadata

Assignees

Labels

api-designUpdates to Project Reunion API surfacesbugSomething isn't workingtheme-FitAndFinishBugs/features that affect the overall quality/experience and final fit and finish of the product

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions