I would like to implement a custom markup extension for use in Silverlight.
Question:
Before venturing into a POC… would like to know if Silverlight implementation of XAML parser support custom markup bindings? Has anyone attempted? Are there any ‘wish I knew this
before I started’ tips?
Unless I am looking in wrong place,
MarkupExtensions are not extensible in Silverlight. The MarkupExtension abstract base class itself is missing in Silverlight.
Types available in System.Windows.Markup namespace:
vplusplus
Member
10 Points
12 Posts
Custom markup extension support in Silverlight XAML parser implementation...
Jun 12, 2008 02:32 PM | LINK
Out-of-the box Silverlight supports Binding, StaticResource and TemplateResource markup extensions.
‘Markup extensions’ as a concept is extensible in WPF XAML parser implementation. Here is a sample: http://blogs.msdn.com/wpfsdk/archive/2007/03/22/blogpost-text-creatingasimplecustommarkupextension.aspx
I would like to implement a custom markup extension for use in Silverlight.
Question:
Before venturing into a POC… would like to know if Silverlight implementation of XAML parser support custom markup bindings? Has anyone attempted? Are there any ‘wish I knew this before I started’ tips?
Silverlight 2.0 Beta 2 custom markup extensions
vplusplus
Member
10 Points
12 Posts
Re: Custom markup extension support in Silverlight XAML parser implementation...
Jun 12, 2008 09:35 PM | LINK
Unless I am looking in wrong place, MarkupExtensions are not extensible in Silverlight. The MarkupExtension abstract base class itself is missing in Silverlight.
Types available in System.Windows.Markup namespace:
WPF: http://msdn.microsoft.com/en-us/library/system.windows.markup.aspx
Silverlight: http://msdn.microsoft.com/en-us/library/system.windows.markup(VS.95).aspx
Probably a consumption choice made between foot-print of Silverlight runtime against making it feature compatible with WPF.