Hi,
I try to use the XamPivot to display Data...
I want to know how i can customize the columnHeader to bind more than property ..
A want to display another information with A-136... in this column
the XAML way please.
Thx
Hello Michel,
In order to customize a column or row header in the XamPivotGrid, I would recommend including the default templates for PivotColumnHeaderCellControl and PivotRowHeaderCellControl. These default templates can be found in the generic.shared.xaml file commonly found at the following directory:
C:\Program Files (x86)\Infragistics\<your version here>\WPF\DefaultStyles\XamPivotGrid
Once you have included these default styles and their dependencies, I would recommend that you locate a ContentControl named “HeaderPresenter” in each default template. Here, you can provide a ContentTemplate that can bind to the element you wish to bind to.
I am attaching a sample project that demonstrates this. I am rather unsure what you are looking to bind to in this case, and so the modification of the ContentControl.ContentTemplate in the case of the sample project is bound to the Content of the ContentControl, which is the normal header as well as the addition of some generic text.
Please let me know if you have any other questions or concerns on this matter.
PivotGridFlatDataTest.zip
Thx,
is complex example
if i understand all the job i done in this section :
<ContentControl.ContentTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"><TextBlock Text="{Binding}"/> <TextBlock Text=" SOME CUSTOM COLUMN TEXTTTTT"/> </StackPanel> </DataTemplate> </ContentControl.ContentTemplate>
i wan't to hard code the Text but something like that
<TextBlock Text="{Binding propertyName1}"/>
<TextBlock Text="{Binding propertyName2}"/>
<TextBlock Text="{Binding propertyName3}"/>
How i can acomplish this... an example please.
thx