ColumnPrimitiveInfo Class
Represents information used to perform the layout of column (bar) charts and the databinding of their primitives for styling.
The following shows how to modify the appearance of the columns in a column chart (the columns/bars are greatly rounded): the properties of the ColumnPrimitiveInfo class are bound to the properties of the Rectangle that represents the columns.
< Window x:Class ="WpfApplication56.MainWindow"
xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:xctk ="http://schemas.xceed.com/wpf/xaml/toolkit"
Title ="MainWindow" Height ="350" Width ="525" >
< Window.Resources >
< DataTemplate x:Key ="ColumnTemplate" >
< Canvas Width =" {Binding Path=W} " Height =" {Binding Path=H} " >
< Rectangle RadiusX ="25" RadiusY ="25" Width =" {Binding Path=W} " Height =" {Binding Path=H} " Fill =" {Binding Path=Interior} " />
</ Canvas >
</ DataTemplate >
</ Window.Resources >
< Grid >
< xctk:Chart >
< xctk:Chart.Areas >
< xctk:Area x:Name ="_area1" Title ="Area #1" >
< xctk:Area.Series >
< xctk:Series x:Name ="_series"
Template =" {StaticResource ColumnTemplate} "
Title ="Average" >
< 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 >
</ Grid >
</ Window >
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
2025 © Xceed Software Inc.
4170 Grande-Allée, Suite 100, Greenfield Park, Qc J4V 3N2