I am using C#, XAML in Microsoft Visual Studio.
In WPF with the desktop version of the .Net framework, there is a markupextension class under namespace System.Windows.Markup. Saw it from the accepted answer in this post Should I declare converters in App.xaml or as a per-file resource?
Is there an equivalent or something that is close to it in for the mobile version of .Net you use to create Metro apps? I can't seem to find the appropriate namespace or is it not supported?
MarkupExtension MarkupExtension MarkupExtension MarkupExtension Class. Definition. Provides a base class for XAML markup extension implementations that can be supported by .NET Framework XAML Services and other XAML readers and XAML writers.
When using .NET XAML Services, you can use some of the predefined XAML language markup extensions from the System.Xaml assembly. You can also subclass from the MarkupExtension class, defined in System.Xaml, and define your own markup extensions.
When a markup extension usage is accessed, the XAML object writer can provide services to a custom MarkupExtension class through a service connection point in the MarkupExtension.ProvideValue override. The services can be used to obtain context about the usage, specific capabilities of the object writer, XAML schema context, and so on.
.NET Multi-platform App UI (.NET MAUI) XAML markup extensions enable properties to be set to objects or values that are referenced indirectly from other sources. XAML markup extensions are particularly important for sharing objects, and referencing constants used throughout an app, but they find their greatest utility in data bindings.
WinRT (Aka Metro) does not have MarkupExtension class.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With