Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit.Chart Namespace / BindingInfo Class
Members Example


In This Topic
    BindingInfo Class
    In This Topic

    Stores binding information for a single property of the DataPoint class.

    Syntax
    'Declaration
     
    Public Class BindingInfo 
    'Usage
     
    Dim instance As BindingInfo
    public class BindingInfo 
    Remarks
    Use the Binding property to set the Binding object for a given DataPoint property, and use PropertyName property (whose type is DataPointPropertyName) to set the property to use binding for.
    Example
    The following demonstrates how to use BindingInfo to set up binding.
    <xctk:Chart MinHeight="300" ShowLegend="False">
      <xctk:Chart.Areas>
        <xctk:Area>
          <xctk:Area.XAxis>
            <xctk:Axis Title="Persons" GraduationMode="Manual" LabelsType="Labels"/>
          </xctk:Area.XAxis>
          <xctk:Area.YAxis>
            <xctk:Axis Title="Skill Level" />
          </xctk:Area.YAxis>
          <xctk:Area.Series>
            <xctk:Series DataPointsSource="{Binding Source={StaticResource PersonCollection}}">
              <xctk:Series.DataPointBindings>
                <xctk:BindingInfo PropertyName="Y">
                  <xctk:BindingInfo.Binding>
                    <Binding Path="Skill"/>
                  </xctk:BindingInfo.Binding>
                </xctk:BindingInfo>
                <xctk:BindingInfo PropertyName="Label">
                  <xctk:BindingInfo.Binding>
                    <Binding Path="Name"/>
                  </xctk:BindingInfo.Binding>
                </xctk:BindingInfo>
              </xctk:Series.DataPointBindings>
            </xctk:Series>
          </xctk:Area.Series>
        </xctk:Area>
      </xctk:Chart.Areas>
    </xctk:Chart>
    Inheritance Hierarchy

    System.Object
       Xceed.Wpf.Toolkit.Chart.BindingInfo

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also