开发者

Silverlight 5: Set ConstructorArgument on a IMarkupExtension class

开发者 https://www.devze.com 2023-03-05 10:08 出处:网络
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}\"&g

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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号