Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maui api examples are inaccurate, obsolete, and don't compile #15964

Closed
Atezian opened this issue Jul 2, 2023 · 2 comments
Closed

Maui api examples are inaccurate, obsolete, and don't compile #15964

Atezian opened this issue Jul 2, 2023 · 2 comments
Labels
platform/windows 🪟 t/bug Something isn't working

Comments

@Atezian
Copy link

Atezian commented Jul 2, 2023

Description

image

Steps to Reproduce

  1. Create a new .net maui app project in VisualStudio 2022.

  2. Copy and paste the grid example on the maui api docs.
    https://learn.microsoft.com/en-us/dotnet/api/microsoft.maui.controls.grid?view=net-maui-7.0

  3. Observe how there is obsolete code. Also, Color.White for example that doesn't compile because Microsoft.Maui.Graphics.Color doesn't contain definitions for these properties. Adding anywhere up to 5 arguments into a method signature that only takes 1 argument. An attempt to call a method that doesn't exist (Device.OnPlatform(...)) Microsoft.Maui.Controls.Device.

Link to public reproduction project repository

https://learn.microsoft.com/en-us/dotnet/api/microsoft.maui.controls.grid?view=net-maui-7.0

Version with bug

7.0.49

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

Windows SDK 10.x

Did you find any workaround?

No. I am trying to learn Maui and I don't know how to solve these issues and I don't know where to ask or find information that would resolve these problems as a work around.

Relevant log output

No response

@Atezian Atezian added the t/bug Something isn't working label Jul 2, 2023
@jfversluis
Copy link
Member

Thanks, we're aware and working hard to make it better as part of #3960

@jfversluis
Copy link
Member

Duplicate of #3960

@jfversluis jfversluis marked this as a duplicate of #3960 Jul 2, 2023
@jfversluis jfversluis closed this as not planned Won't fix, can't repro, duplicate, stale Jul 2, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform/windows 🪟 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants