Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MarkUpExtension in .Net Metro App

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?

like image 380
learner Avatar asked Jun 04 '13 21:06

learner


People also ask

What is markupextension class in XAML?

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.

How do I use markup extensions in XAML services?

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.

What are the services provided by the markupextension?

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.

What are XAML markup extensions in Maui?

.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.


1 Answers

WinRT (Aka Metro) does not have MarkupExtension class.

like image 54
Federico Berasategui Avatar answered Nov 05 '22 09:11

Federico Berasategui