Databinding the color of a RadialGradient brush in silverlight 3

后端 未结 2 1716
终归单人心
终归单人心 2021-01-24 05:58

I am trying to databind the color of a RadialGradientBrush in silverlight 3 to a property, but just can\'t seem to get it to work.

For example, in a sample test app all

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-24 06:23

    Unfortunately, you cannot do that since Binding happens on FrameworkElement and every object that inherits it. GradientStop is not a FrameworkElement, which prevents you from binding its Color property.

提交回复
热议问题