Click here to Skip to main content
15,879,095 members
Articles / Desktop Programming / WPF

OpenWPFChart: Assembling Charts from Components. Part II - Controls

Rate me:
Please Sign up or sign in to vote.
4.90/5 (14 votes)
26 Mar 2009CPOL10 min read 69.5K   2.2K   52  
Chart controls composed from Chart Parts
// <copyright file="PolylineSampledCurve.cs" company="Oleg V. Polikarpotchkin">
// Copyright © 2008 Oleg V. Polikarpotchkin. All Right Reserved
// </copyright>
// <author>Oleg V. Polikarpotchkin</author>
// <email>ov-p@yandex.ru</email>
// <date>2008-12-23</date>
// <summary>OpenWPFChart library. PolylineSampledCurve element class.</summary>
// <revision>$Id: PolylineSampledCurve.cs 18093 2009-03-16 04:15:06Z unknown $</revision>

using System.Windows.Data;

namespace OpenWPFChart.Parts
{
	/// <summary>
	/// PolylineSampledCurve element class.
	/// </summary>
	public class PolylineSampledCurve : Item
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="PolylineSampledCurve"/> class.
		/// </summary>
		/// <remarks>Initializes this object with <see cref="PolylineSampledCurveVisual"/>.</remarks>
		public PolylineSampledCurve()
		{
			PolylineSampledCurveVisual itemVisual = new PolylineSampledCurveVisual();
			BindingOperations.SetBinding(itemVisual, ItemDataViewProperty
				, new Binding("ItemDataView") { Source = this });
			visuals.Add(itemVisual);
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader
Russian Federation Russian Federation
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions