How to bind GradientStop Colours or GradientStops Property in Silverlight?

前端 未结 4 921
情书的邮戳
情书的邮戳 2020-12-11 18:41

I want to be able to have a dynamic Gradient in Silverlight, such as below:



        
4条回答
  •  生来不讨喜
    2020-12-11 19:34

    The problem is that GradientStop does not derive from FrameworkElement therefore cannot be data bound. Unfortunately that means you have to set it from code.

提交回复
热议问题