RJ90 0 Posted March 26, 2011 Report Share Posted March 26, 2011 Olá! Estou a trabalhar com charts e tenho aqui uma dúvida. Quero fazer binding de valores através de c#. Vejamos: <igCA:XamChart View3D="False"> <igCA:XamChart.Series> <igCA:Series ChartType="Column" Fill="#0000FF" Stroke="#000000" Label="Male"> <igCA:Series.DataPoints> <igCA:DataPoint Value="{Binding valueMale}" Label="Male" /> </igCA:Series.DataPoints> </igCA:Series> <igCA:Series ChartType="Column" Fill="#FF00FF" Stroke="#000000" Label="Female"> <igCA:Series.DataPoints> <igCA:DataPoint Value="{Binding valueFemale}" Label="Female"/> </igCA:Series.DataPoints> </igCA:Series> </igCA:XamChart.Series> </igCA:XamChart> Ou seja, quero através de C# definir um valor em Value="{Binding valueMale}". Cumprimentos, ◣ Samsung 700Z5A-S01PT ◥ ◣ Samsung Ominia W ◥ ᥡ What Else? ᥡ Link to post Share on other sites
saramgsilva 1 Posted March 26, 2011 Report Share Posted March 26, 2011 Tens que criar um objecto Binding com as definições que pretendes: Path; Mode; UpdateSourceTrigger; Source... e depois tens que fazer atribuição do binding ao ValueProperty usando uma função chamada SetBinding, não tenho aqui forma de testar isso, mas penso que será por ai. www.saramgsilva.com As minhas apps no WP7 Marketplace Youtube : Galinho - Windows Phone 7.5 Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now