From 9ac38d337e411bf12834d642254cfce7b8470971 Mon Sep 17 00:00:00 2001 From: ritazakhodyaeva <57389482+ritazakhodyaeva@users.noreply.github.com> Date: Mon, 10 Mar 2025 23:43:10 +0400 Subject: [PATCH 1/3] Update Readme.md --- Readme.md | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/Readme.md b/Readme.md index 92c52d5..5542d9c 100644 --- a/Readme.md +++ b/Readme.md @@ -4,26 +4,30 @@ [![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183) [![](https://img.shields.io/badge/💬_Leave_Feedback-feecdd?style=flat-square)](#does-this-example-address-your-development-requirementsobjectives) - -*Files to look at*: -* **[MainWindow.xaml](./CS/MvvmChart/MainWindow.xaml) (VB: [MainWindow.xaml](./VB/MvvmChart/MainWindow.xaml))** -* [MainWindow.xaml.cs](./CS/MvvmChart/MainWindow.xaml.cs) (VB: [MainWindow.xaml.vb](./VB/MvvmChart/MainWindow.xaml.vb)) -* [ViewModel.cs](./CS/MvvmChart/ViewModel.cs) (VB: [ViewModel.vb](./VB/MvvmChart/ViewModel.vb)) - -# How to generate Series of different view types using the MVVM binding style +# Chart for WPF - Use the MVVM Binding Style to Generate Series of Different View Types +This example generates different Series from a view model. Clicking on a series changes its type from Line to Range Area. -

This example demonstrates how to generate different Series from a view model. Note that you can bind secondary axes and custom labels using the same approach. The XYDiagram2D.SeriesItemsSource property defines a collection of objects used to generate Series. To configure how the series view model is converted to a series on a chart, use the XYDiagram2D.SeriesItemTemplateSelector property.

See also: How to generate Series of identical view types using the MVVM binding style.

+![Chart](./images/chart.png) +## Implementation Details -

Description

+The `XYDiagram2D.SeriesItemsSource` property defines a collection of objects used to generate Series. To bind series view models to a chart, use the `SeriesItemsSource` property of a diagram. To configure how the series view model converts to a series on a chart, use `SeriesItemTemplate` or `SeriesItemTemplateSelector`. In this example, the Template Selector converts the selected series type from Line to Range Area. -

To bind series view models to a chart, use the SeriesItemsSource property of a diagram. To configure how the series view model converts to a series on a chart, use SeriesItemTemplate or SeriesItemTemplateSelector. In this example, the Template Selector is used to convert the selected series type from Line to Range Area.

+Note that you can bind secondary axes and custom labels using the same approach.  -
+## Files to Review + + +* **[MainWindow.xaml](./CS/MvvmChart/MainWindow.xaml) (VB: [MainWindow.xaml](./VB/MvvmChart/MainWindow.xaml))** +* [MainWindow.xaml.cs](./CS/MvvmChart/MainWindow.xaml.cs) (VB: [MainWindow.xaml.vb](./VB/MvvmChart/MainWindow.xaml.vb)) +* [ViewModel.cs](./CS/MvvmChart/ViewModel.cs) (VB: [ViewModel.vb](./VB/MvvmChart/ViewModel.vb)) + +## More Examples +[Chart for WPF - Use the MVVM Binding Style to Generate Series of an Identical View Type](https://github.com/DevExpress-Examples/wpf-charts-create-multiple-series-of-identical-view-mvvm) ## Does this example address your development requirements/objectives? From aa156395b3d280c1ca9df75fd2801aef426b248c Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Mon, 10 Mar 2025 21:45:15 +0200 Subject: [PATCH 2/3] Created a new file CODEOWNERS [skip ci] --- CODEOWNERS | 1 + 1 file changed, 1 insertion(+) create mode 100644 CODEOWNERS diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..a88e69e --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1 @@ +* @DevExpressExampleBot \ No newline at end of file From fd1969a2b3f2956fcc67972b706b2e0c27e3d598 Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Mon, 10 Mar 2025 23:45:20 +0400 Subject: [PATCH 3/3] README auto update [skip ci] --- Readme.md | 1 - 1 file changed, 1 deletion(-) diff --git a/Readme.md b/Readme.md index 5542d9c..8f3f7e3 100644 --- a/Readme.md +++ b/Readme.md @@ -1,5 +1,4 @@ -![](https://img.shields.io/endpoint?url=https://codecentral.devexpress.com/api/v1/VersionRange/128569950/24.2.1%2B) [![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/T500832) [![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183) [![](https://img.shields.io/badge/💬_Leave_Feedback-feecdd?style=flat-square)](#does-this-example-address-your-development-requirementsobjectives)