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

FormattedText.Spans does not exist #438

Open
hjrb opened this issue Apr 2, 2024 · 2 comments
Open

FormattedText.Spans does not exist #438

hjrb opened this issue Apr 2, 2024 · 2 comments

Comments

@hjrb
Copy link

hjrb commented Apr 2, 2024

Describe the bug

https://reference.avaloniaui.net/api/Avalonia.Media/FormattedText/ says there is a property Spans. Well: the property does not exist

To Reproduce

See https://github.com/AvaloniaUI/Avalonia/blob/23b3a767dcde97cbcd3df2fb03bafd35df1b6942/src/Avalonia.Base/Media/FormattedText.cs#L15 Spans is not part of the code

Expected behavior

The documentation should match the source code.
This one of the first things I tried - immediate failure :-( Confidence that Avalonia is an framework suitable for commercial use is vanishing.

Avalonia version

11.0.10

OS

Windows

Additional context

No response

@Gillibald
Copy link

You are not telling us what you are trying to achieve.

We closely follow WPF's text API

For formatted text within a TextBlock this should help: https://docs.avaloniaui.net/docs/reference/controls/detailed-reference/textblock

This is also valid: https://learn.microsoft.com/en-us/dotnet/api/system.windows.media.formattedtext?view=windowsdesktop-8.0

@hjrb
Copy link
Author

hjrb commented Apr 2, 2024

The issue is that https://reference.avaloniaui.net/ is outdated (as not maintained by you). So instead, I will use https://docs.avaloniaui.net/docs/reference/ . A Google search suggested https://reference.avaloniaui.net/ as documentation. I requested from Google to remove https://reference.avaloniaui.net/ from the Index. Thanks for the support.

@maxkatz6 maxkatz6 transferred this issue from AvaloniaUI/Avalonia Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants