开发者

WPFtoolkit Chart, Object Binding

开发者 https://www.devze.com 2023-02-08 19:56 出处:网络
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

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

精彩评论

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

关注公众号