开发者

WPFtoolkit Chart, Object Binding

can anyone tell me whether I can bind an object with a brush (as a property) as a static property be boun开发者_如何学编程d as the background of a chart datapoint (to be specific column datapoint for the time being)? I am setting the itemsSource property with another data object. Thanks in advance.


its just creating a binding to the background property the usual way:

 <Setter Property="Background" Value="{Binding Source={StaticResource mybackresource}, Path= myBackColor}"/>

mybackresource is the resource which is targeted at the class with the property myBackColor (the color we need a binding to).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜