or
RadWindow.Confirm(new DialogParameters(){ Owner = myMainpage, DialogStartupLocation = WindowStartupLocation.CenterOwner, Content = message, Closed = Cancel_Click private void Cancel_Click(object sender, Telerik.Windows.Controls.WindowClosedEventArgs e) {
Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, (System.Threading.ThreadStart)delegate()
{
myTextBox.Focus();
});
//set the focus here
RadCartesianChart cartChart = new RadCartesianChart(); cartChart.HorizontalAxis = new LinearAxis() { Maximum = 50, Minimum = 17, MajorStep = 3 }; cartChart.VerticalAxis = new LinearAxis() { LabelFormat = "p0" }; var resultList = CordXy.GetMonthFecundity(); ScatterLineSeries pregSeries = new ScatterLineSeries() { Stroke = new SolidColorBrush(Colors.Blue), StrokeThickness = 2 }; ; pregSeries.XValueBinding = new PropertyNameDataPointBinding() { PropertyName = "Age" }; pregSeries.YValueBinding = new PropertyNameDataPointBinding() { PropertyName = "Num" }; // ADD Legend pregSeries.LegendSettings = new SeriesLegendSettings() { Title = "TEST" }; pregSeries.ItemsSource = resultList[0] as IEnumerable<CordXy>; cartChart.Series.Add(pregSeries); ScatterLineSeries delSeries = new ScatterLineSeries() { Stroke = new SolidColorBrush(Colors.Red), StrokeThickness = 2 }; ; delSeries.XValueBinding = new PropertyNameDataPointBinding() { PropertyName = "Age" }; delSeries.YValueBinding = new PropertyNameDataPointBinding() { PropertyName = "Num" }; // ADD Legend delSeries.LegendSettings = new SeriesLegendSettings() { Title = "TEST2" }; delSeries.ItemsSource = resultList[1] as IEnumerable<CordXy>; cartChart.Series.Add(delSeries); // STUCK HERE... //cartChart.LegendItems.Add(pregSeries.LegendSettings); //cartChart.LegendItems.Add(delSeries.LegendSettings);