开发者

Editing attached property in Blend and VS 2010

I defined an attached property in silverlight that I want to use it on Silverlight's TextBox 开发者_StackOverflow中文版Is there a way to show this property on the property page in Blend, and VS 2010 Like we do with the attached property Grid.Column, Grid.Row, where we can set them on VS 2010? and if yes, Can I create its own PropertyValueEditor using Silverlight extensibility?

Thanks for help


The only way that you can do this in Blend is by creating a Behavior that sets the property and creating a design-time assembly for the behavior.

Here are articles on creating a Silverlight Design-time assemblies.

Expression Blend has a file template for Behaviors - start with that and create properties that mirror each of the attached properties - call the setters/getters in those properties.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜