<
telerik:ChartDataSource
x:Name
=
"ChartDataSource"
ItemsSource
=
"{Binding BarData}"
/>
<
telerik:RadCartesianChart
Grid.Column
=
"1"
x:Name
=
"RadChart1"
HorizontalAlignment
=
"Stretch"
telerik:StyleManager.Theme
=
"Metro"
VerticalAlignment
=
"Stretch"
FontSize
=
"12"
FontFamily
=
"Segoe UI"
>
<
chart:RadCartesianChart.Behaviors
>
<
chartView:ChartTooltipBehavior
Placement
=
"MousePoint"
HorizontalOffset
=
"-6"
VerticalOffset
=
"1"
/>
</
chart:RadCartesianChart.Behaviors
>
<
chartView:BarSeries
ValueBinding
=
"Count"
CategoryBinding
=
"Username"
ItemsSource
=
"{BindingElementName=ChartDataSource}"
ShowLabels
=
"True"
FontSize
=
"12"
/>
<
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:LinearAxis
Maximum
=
"1000"
Minimum
=
"0"
/>
</
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:CategoricalAxis
HorizontalLocation
=
"Left"
/>
</
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:RadCartesianChart.Grid
>
<
telerik:CartesianChartGrid
MajorLinesVisibility
=
"X"
StripLinesVisibility
=
"X"
/>
</
telerik:RadCartesianChart.Grid
>
</
telerik:RadCartesianChart
>
I am using your controls and they are nice. But i have an issue with RadCartesianChart.
Issue : I need to resize window and whole application to make it flexible to all screens.
Using; Prism to hold regions in RadTileView.
If i resize the window when no data in RadCatesianChart, everything is fine and no exceptions. But if i resize the window when there is data on RadCartesianChart, it causes that exception;
Unhandled Error in Silverlight Application
Code: 4004
Category: ManagedRuntimeError
Message: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
konum System.Collections.Generic.Dictionary`2.get_Item(TKey key)
konum System.Windows.ResourceManagerWrapper.GetResourceForUri(Uri xamlUri, Type componentType)
I am using that control to hold the region,
<
ItemsControl
prism:RegionManager.RegionName
=
"TopUsers_Region"
Margin
=
"5"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
Width
=
"Auto"
Height
=
"Auto"
>
<
ItemsControl.ItemsPanel
>
<
ItemsPanelTemplate
>
<
Grid
/>
</
ItemsPanelTemplate
>
</
ItemsControl.ItemsPanel
>
</
ItemsControl
>
Note: That exception not throwed when using RadPieChart with same controls.
Note: Resizing: resize browser and controls automatically resized
Can you help me to find out what is the problem?
Thank you,
Sarper