I use sample from demo:
I use
But i cant change color here: Fill="#7F8EC448" Stroke="#FF8EC442". Output window:
How fix it?
<
telerik:RadCartesianChart
Palette
=
"Windows8"
Height
=
"Auto"
Width
=
"500"
>
<
telerik:RadCartesianChart.Behaviors
>
<
telerik:ChartTrackBallBehavior
ShowIntersectionPoints
=
"True"
/>
</
telerik:RadCartesianChart.Behaviors
>
<
telerik:AreaSeries
CategoryBinding
=
"Category"
Fill
=
"#7F8EC448"
Stroke
=
"#FF8EC442"
StrokeThickness
=
"2"
ValueBinding
=
"Value"
ItemsSource
=
"{Binding Chart1}"
>
<
telerik:AreaSeries.TrackBallInfoTemplate
>
<
DataTemplate
>
<
StackPanel
Margin
=
"3"
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"{Binding DataPoint.Category, StringFormat='Spread at {0:HH:mm:ss.f}:'}"
Margin
=
"0,0,3,0"
/>
<
TextBlock
Text
=
"{Binding DataPoint.Value}"
FontWeight
=
"Bold"
/>
</
StackPanel
>
</
DataTemplate
>
</
telerik:AreaSeries.TrackBallInfoTemplate
>
</
telerik:AreaSeries
>
<
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:DateTimeContinuousAxis
MajorStepUnit
=
"Second"
LabelInterval
=
"10"
LabelFormat
=
"HH:mm:ss.f"
FontFamily
=
"Segoe UI"
PlotMode
=
"OnTicks"
/>
</
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:LinearAxis
FontFamily
=
"Segoe UI"
>
</
telerik:LinearAxis
>
</
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:RadCartesianChart.Grid
>
<
telerik:CartesianChartGrid
MajorLinesVisibility
=
"Y"
MajorYLineDashArray
=
"3,4"
/>
</
telerik:RadCartesianChart.Grid
>
</
telerik:RadCartesianChart
>
I use
DataContext
binding:DataContext = _viewModelMain;
But i cant change color here: Fill="#7F8EC448" Stroke="#FF8EC442". Output window:
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=Color; DataItem=null; target element is 'SolidColorBrush' (HashCode=1226006); target property is 'Color' (type 'Color')
How fix it?