-
Notifications
You must be signed in to change notification settings - Fork 420
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
[Proposal] Xmlns Definition #245
Comments
Given we now have our docs repository setup this change will drastically simplify the writing of the docs. I think this alone also then shows how it would simplify writing XAML in apps :) Please vote:
|
Hello folks, Having a suggestion on this one, the xmlns prefix can be made smaller because they need to be typed every time to refer to any of the types such as
Saves a lot of keystrokes and precious time. Another one is a typo error in the current xmlns value. Note that it ends with
Notify to @brminnick @bijington |
@egvijayanand Thank you for this. I can't believe we missed the typo I will get that fixed shortly. For the first point about the prefix this is entirely up to you as a consumer you can call it whatever you like e.g. xmlns:mct="http://schemas.microsoft.com/dotnet/2022/maui/tookit" |
Hi @bijington, I do agree that preference on prefixes' is left to the user. But I hope there'll be a default prefix value (defined with Regards, |
@egvijayanand thanks for this. I have a fix for the typo over at this PR #263 along with an initial discussion on what the prefix should be :) |
Reopening Proposal. Only Proposals moved to the |
Reopening Proposal. Only Proposals moved to the |
Reopening Proposal. Only Proposals moved to the |
Add Xmlns Definition
Link to Discussion
#144
Summary
This proposal will result in reducing the number of
xmlns
declarations required in XAML files when using different parts of the toolkit. It would result in only needing to use a single declaration e.g.xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/tookit"
Motivation
To reduce the number of
xmlns
declarations required in XAML files.Detailed Design
More implementation detail than design but we should just require adding this for each part of the namespace:
Usage Syntax
XAML Usage
Drawbacks
There has been a discussion around whether this could introduce the linking issue that we saw in XCT (xamarin/XamarinCommunityToolkit#1311) however it is believed that this should not be an issue in the Maui Community Toolkit given we will actually have to call code that will prevent the linker from removing it.
Alternatives
Do nothing?
Unresolved Questions
N/A
The text was updated successfully, but these errors were encountered: