Share via

global xaml namespaces

Eduardo Gomez 4,316 Reputation points
2024-01-15T23:12:41.76+00:00

I noticed that I am using many of synfusion controls. for example in a page I am using xmlns:chechbox="clr-namespace:Syncfusion.Maui.Buttons;assembly=Syncfusion.Maui.Buttons" xmlns:expander="clr-namespace:Syncfusion.Maui.Expander;assembly=Syncfusion.Maui.Expander" xmlns:inputLayout="clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core"

xmlns:mct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" Also I use a folder named viewmodels

             xmlns:vm="clr-namespace:DemyAI.ViewModels"

Is there a way to make these globally available for every page.

Developer technologies | .NET | .NET Multi-platform App UI
0 comments No comments

Answer accepted by question author

Anonymous
2024-01-16T02:53:15.17+00:00

Hello,

Is there a way to make these globally available for every page.

No, this feature request was added in the MAUI github repo, see:A global usings/namespaces file to include namespaces and inherit attributes from base page for all xaml files #3376

You can track on this issue and leave the comment in above MAUI GitHub link.

Best Regards,

Leon Lu


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.