Xceed Toolkit for .NET Maui v2.0 Documentation
Xceed.Maui.Toolkit Assembly / Xceed.Maui.Toolkit Namespace / BindingInfos Class
Members Example


In This Topic
    BindingInfos Class
    In This Topic
    Represents the information that are needed in order to create a binding between a Series' DataPoints & a UserObject property.
    Syntax
    'Declaration
     
    
    Public Class BindingInfos 
    'Usage
     
    
    Dim instance As BindingInfos
    public class BindingInfos 
    Example

    In the following example, "UserObjects" is a property on which the Series binds to in order to retrieve a collection of UserObjects.

    To display the SeriesDataPointsBindingInfos objects are used so that each UserObject.Id property is set as X on the Chart's horizontal Axis & that the UserObject.Goals property is set as Y on the Chart's vertical Axis. These bindings will assure that all the DataPoints are located correctly in the Chart.

    <xctk:Chart.Series>
      <xctk:Series DataPointsSource="{Binding UserObjects, Source={x:Reference _contentPage}}">
        <xctk:Series.DataPointsSourceBindingInfos>
          <xctk:BindingInfos DataPointPropertyName="X"
                             UserObjectPropertyName="Id"/>
          <xctk:BindingInfos DataPointPropertyName="Y"
                             UserObjectPropertyName="Goals"/>
        </xctk:Series.DataPointsSourceBindingInfos>
      </xctk:Series>
    </xctk:Chart.Series>
    Inheritance Hierarchy

    System.Object
       Xceed.Maui.Toolkit.BindingInfos

    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