Skip to content

Preferences API not working correctly on Windows #9338

@tekmun

Description

@tekmun

Description

Preferences.Get returns 0 instead of null when key is never set before.
Preferences.Remove returns 0 instead of being deleted.
Picker ItemSource does not show a drop-down list. Nothing is shown.

Steps to Reproduce

Just create a Preferences.Get("test", "-1") and you will get 0 instead of null.
Just create a Preferences.Set("test", "1"). Then, Preferences.Remove("test"). Do a Preferences.Get("test", "-1") and you will get 0.
Do a picker. Populate it's ItemSource with a list. Nothing shows up when you click on it.

All these issues work well on Android platform.

Version with bug

6.0.486 (current)

Last version that worked well

6.0.400

Affected platforms

Windows

Affected platform versions

Windows SDK

Did you find any workaround?

NO.

Relevant log output

No log output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infofixed-in-6.0.540Look for this fix in 6.0.540 SR5!fixed-in-7.0.0-rc.1.6683i/regressionThis issue described a confirmed regression on a currently supported versionplatform/windowst/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions