You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to make any sort of custom markup extension with MAUI is a good amount of pain, due to the massive amount of reflection based code used to look up properties and mutate. Additionally, MAUI makes necessary XAML utility classes private, so library or application developers can't even use them.
Attempting to create a markup extension like the following is more difficult than it needs to be. Access to TypeConversionExtensions would be extremely useful as now I have to effectively duplicate the type conversions and caching. The fact this class is private is an active footgun to library authors, as they may choose to skip caching and introduce memory leaks by rolling their own type conversion code.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/dotnet/maui/blob/main/src/Controls/src/Core/Xaml/TypeConversionExtensions.cs
Attempting to make any sort of custom markup extension with MAUI is a good amount of pain, due to the massive amount of reflection based code used to look up properties and mutate. Additionally, MAUI makes necessary XAML utility classes private, so library or application developers can't even use them.
Attempting to create a markup extension like the following is more difficult than it needs to be. Access to
TypeConversionExtensions
would be extremely useful as now I have to effectively duplicate the type conversions and caching. The fact this class is private is an active footgun to library authors, as they may choose to skip caching and introduce memory leaks by rolling their own type conversion code.Beta Was this translation helpful? Give feedback.
All reactions