This question is locked. New answers and comments are not allowed.
Curently i am creating a default tooltip for bar series .. I want to create a custom tooltip template and then use it with this barchart. I am totally new to C# and silverlight .
CategoricalAxis xAxis = new CategoricalAxis();
xAxis.LabelFitMode = AxisLabelFitMode.Rotate;
LinearAxis y1Axis = new LinearAxis();
y1Axis.RangeExtendDirection = Telerik.Charting.NumericalAxisRangeExtendDirection.None;
chart.HorizontalAxis = xAxis;
chart.VerticalAxis = y1Axis;
xAxis.LabelFitMode = AxisLabelFitMode.Rotate;
//current tooltip
chart.Behaviors.Add(new ChartTooltipBehavior() { Placement = PlacementMode.Top });
BarSeries okSeries = new BarSeries();
okSeries.ItemsSource = this.yields;
okSeries.CategoryBinding = new PropertyNameDataPointBinding() { PropertyName = "LocationName" };
okSeries.ValueBinding = new GenericDataPointBinding<Yield, int?>() { ValueSelector = yield => yield.OK };
okSeries.CombineMode = ChartSeriesCombineMode.Stack;
okSeries.DefaultVisualStyle = App.Current.Resources["YieldOK"] as Style;
BarSeries nokSeries = new BarSeries();
nokSeries.ItemsSource = this.yields;
nokSeries.CategoryBinding = new PropertyNameDataPointBinding() { PropertyName = "LocationName" };
nokSeries.ValueBinding = new GenericDataPointBinding<Yield, int?>() { ValueSelector = yield => yield.NOK };
nokSeries.CombineMode = ChartSeriesCombineMode.Stack;
nokSeries.DefaultVisualStyle = App.Current.Resources["YieldNOK"] as Style;
CategoricalAxis xAxis = new CategoricalAxis();
xAxis.LabelFitMode = AxisLabelFitMode.Rotate;
LinearAxis y1Axis = new LinearAxis();
y1Axis.RangeExtendDirection = Telerik.Charting.NumericalAxisRangeExtendDirection.None;
chart.HorizontalAxis = xAxis;
chart.VerticalAxis = y1Axis;
xAxis.LabelFitMode = AxisLabelFitMode.Rotate;
//current tooltip
chart.Behaviors.Add(new ChartTooltipBehavior() { Placement = PlacementMode.Top });
BarSeries okSeries = new BarSeries();
okSeries.ItemsSource = this.yields;
okSeries.CategoryBinding = new PropertyNameDataPointBinding() { PropertyName = "LocationName" };
okSeries.ValueBinding = new GenericDataPointBinding<Yield, int?>() { ValueSelector = yield => yield.OK };
okSeries.CombineMode = ChartSeriesCombineMode.Stack;
okSeries.DefaultVisualStyle = App.Current.Resources["YieldOK"] as Style;
BarSeries nokSeries = new BarSeries();
nokSeries.ItemsSource = this.yields;
nokSeries.CategoryBinding = new PropertyNameDataPointBinding() { PropertyName = "LocationName" };
nokSeries.ValueBinding = new GenericDataPointBinding<Yield, int?>() { ValueSelector = yield => yield.NOK };
nokSeries.CombineMode = ChartSeriesCombineMode.Stack;
nokSeries.DefaultVisualStyle = App.Current.Resources["YieldNOK"] as Style;