Search code examples
xamlmarkup-extensionssilverlight-5.0

Silverlight 5: Set ConstructorArgument on a IMarkupExtension class


I would like to have a MarkupExtension that can be initiated with just one value, much like Binding:

<TextBox Text="{Binding MyPath}"/> instead of <TextBox Text="{Binding Path=MyPath}">

In WPF this is done with the ConstructorArgumentAttribute, but this doesn't exist in Silverlight.
I checked for attributes on the Path property of Binding but have'nt found any attributes applied to it.

Any ideas?


Solution

  • For now I realize that it's not yet implemented.

    So if you think this feature is compelling, please go ahead and vote for this feature here.

    Hope this answer to be updated as soon as I have any piece of news (hope this to happen asap...).