[Enhancement] Replace Xamarin.Forms.Xaml with System.Xaml #85
-
Wondering if anyone's considered dropping in System.Xaml from dotnet/wpf to replace Xamarin.Forms.Xaml Having contributed to Xamarin.Forms.Xaml a couple of times now, I think it's fair to say it has a lot of technical debt, magic strings, etc., left over from the earliest days of XF that it might be time to consider retiring it. If it's possible to get both WPF and MAUI using the same XAML parser I think that would potentially solve a lot of current limitations - particularly when it comes to naming and namespaces - and make maintenance a lot easier. I believe, if I'm not mistaken, either the WPF team made sure to make System.Xaml not have any WPF dependencies, or this was already the case. Just something to consider if y'all aren't already. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
This makes sense. One thing is System.Xaml has a lot more capabilities (like MultiBinding) that Xamarin.Core.Xaml doesn't currently support. |
Beta Was this translation helpful? Give feedback.
-
@shanranm MultiBinding has been added to Xamarin.Forms by @legistek , and will drop in 4.7. |
Beta Was this translation helpful? Give feedback.
-
Indeed! :) Actually @shanranm |
Beta Was this translation helpful? Give feedback.
-
Just to give an example of what I'm talking about: https://github.com/dotnet/maui/blob/build/System.Maui.Xaml/XamlParser.cs#L105 That sortof stuff's got to go. |
Beta Was this translation helpful? Give feedback.
-
this is exactly why I ditched XAML a long time time. I build all my Xamarin.Forms UI's using code, and will be taking that further soon by using Comet.
thankfully MVU is baked into MAUI so hopefully it won't be too hard to change the comet code to use MAUI's equivalent in November 2021
… On 23 May 2020, at 00:22, Peter Moore ***@***.***> wrote:
Just to give an example of what I'm talking about:
https://github.com/dotnet/maui/blob/build/System.Maui.Xaml/XamlParser.cs#L105 <https://github.com/dotnet/maui/blob/build/System.Maui.Xaml/XamlParser.cs#L105>
That sortof stuff's got to go.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <https://github.com/dotnet/maui/issues/85#issuecomment-632930895>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACOGERU25XHCKMMT623CS6DRS33J7ANCNFSM4NHZTY4A>.
|
Beta Was this translation helpful? Give feedback.
-
I was looking at the |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
System.Xaml isn't available on any platform we have to support (think netstandard). Also, the exposed API isn't enough to get us a fast, performant, and complete Xaml parser/inflater. It is in our plan to decouple the Xaml parser from XF code, ideally while moving to MAUI, but I kind of disagree to:
|
Beta Was this translation helpful? Give feedback.
System.Xaml isn't available on any platform we have to support (think netstandard). Also, the exposed API isn't enough to get us a fast, performant, and complete Xaml parser/inflater.
It is in our plan to decouple the Xaml parser from XF code, ideally while moving to MAUI, but I kind of disagree to: