How to bind GradientStop Colours or GradientStops Property in Silverlight?

前端 未结 4 886
情书的邮戳
情书的邮戳 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:22

    Have you confirmed the type being used as the DataContext where your gradient brush is defined? As you haven't specified a Source in your binding, it will use the DataContext by default.

提交回复
热议问题