我創造我的Windows Phone app.this圖表是我的代碼XAML如何從代碼中的windows phone顯示圖表背後
<amq:SerialChart x:Name="line" DataSource="{Binding results}" CategoryValueMemberPath="month"
AxisForeground="White"
PlotAreaBackground="Black"
GridStroke="DarkGray" >
<amq:SerialChart.Graphs>
<amq:LineGraph Title="Sales" ValueMemberPath="actual" Brush="red" StrokeThickness="5" />
</amq:SerialChart.Graphs>
</amq:SerialChart>
我怎麼可以這樣寫XAML與C#(僅次於代碼)
AxisForeground = 「白」, PlotAreaBackground = 「黑」, GridStroke = 「深灰」 錯誤消息 「無法隱式轉換類型 '字符串' 到 'System.Windows.Media.Brush'」 – user3433797
@ user3433797更新超過 – McGarnagle