Databinding the color of a RadialGradient brush in silverlight 3

后端 未结 2 1718
终归单人心
终归单人心 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:17

    Ok, I solved this problem by going one level higher and databinding the RadialGradientBrush itself.

            
                
    

    The RadialGradientBrush in turn is instantiated with the GradientStops set to the colors I want in the code behind.

提交回复
热议问题