Xceed Toolkit Plus for WPF v5.1 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit.Chart Namespace / DataPoint Class
Example


In This Topic
    DataPoint Class
    In This Topic
    Contains user-logic coordinates for every chart primitive.
    Syntax
    'Declaration
     
    
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class DataPoint 
       Inherits System.Windows.DependencyObject
    'Usage
     
    
    Dim instance As DataPoint
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class DataPoint : System.Windows.DependencyObject 
    Example
    The following sets up unbound data points in a column chart.
    <xctk:Chart>
      <xctk:Chart.Areas>
        <xctk:Area x:Name="_area1" Title="Area #1">
          <xctk:Area.Series>
            <xctk:Series x:Name="_series">
              <xctk:Series.Layout>
                <xctk:ColumnLayout />
              </xctk:Series.Layout>
              <xctk:Series.DataPoints>
                <xctk:DataPoint X="1" Y="1" Label="Oct" />
                <xctk:DataPoint X="2" Y="2" Label="Jan"/>
                <xctk:DataPoint X="2.5" Y="1.5" Label="Feb" />
                <xctk:DataPoint X="4" Y="1" Label="Jun"/>
                <xctk:DataPoint X="1.5" Y="3" Label="Dec"/>
                <xctk:DataPoint X="5" Y="5" Label="Apr"/>
                <xctk:DataPoint X="3" Y="1" Label="Nov"/>
                <xctk:DataPoint X="4.5" Y="7" Label="Jul"/>
                <xctk:DataPoint X="3.5" Y="4.5" Label="Aug"/>
              </xctk:Series.DataPoints>
            </xctk:Series>
          </xctk:Area.Series>
        </xctk:Area>
      </xctk:Chart.Areas>
    </xctk:Chart>
    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             Xceed.Wpf.Toolkit.Chart.DataPoint

    Public Constructors
     NameDescription
    Public ConstructorOverloaded. Initializes a new instance of the DataPoint class.  
    Top
    Public Fields
     NameDescription
    Public Fieldstatic (Shared in Visual Basic)Identifies the Content dependency property.  
    Public Fieldstatic (Shared in Visual Basic)Identifies the Label dependency property.  
    Public Fieldstatic (Shared in Visual Basic)Identifies the X dependency property.  
    Public Fieldstatic (Shared in Visual Basic)Identifies the Y dependency property.  
    Top
    Public Properties
     NameDescription
    Public PropertyGets the content for this DataPoint as a participant in data binding with the corresponding chart visuals (primitives) as a data source object.  
    Public Property (Inherited from System.Windows.DependencyObject)
    Public Property (Inherited from System.Windows.Threading.DispatcherObject)
    Public Property (Inherited from System.Windows.DependencyObject)
    Public PropertyGets or sets the datapoint's label.  
    Public PropertyGets or sets the x-value.  
    Public PropertyGets or sets y-value.  
    Top
    Public Methods
    Protected Methods
     NameDescription
    Protected MethodOverloaded. Raises the PropertyChanged event with the specified PropertyChangedEventArgs objects.  
    Protected Internal Method (Inherited from System.Windows.DependencyObject)
    Top
    Extension Methods
     NameDescription
    Public Extension MethodFinds the logical ancenster
    Public Extension Method
    Public Extension MethodFind the logical children.
    Public Extension MethodFinds the visual ancestor.
    Public Extension MethodFinds the visual children.
    Public Extension MethodFinds the visual tree root.
    Public Extension MethodOverloaded. 
    Top
    Public Events
     NameDescription
    Public EventOccurs when properties or sub-properties of the PropertyValue object have changed.  
    Top
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also