please help me to set the value of controls in the DataTemplate of report header
<Page.Resources>
<!-- DataTemplate for page header-->
<DataTemplate x:Key="PagePresenterHeaderTemplate">
<Grid>
<Image Source="../../images\misc\HeaderPic.png"/>
<Label
Height="50"
Content="{Binding}"
Padding="0"
HorizontalContentAlignment="Center"
VerticalContentAlignment="Center"/>
</Grid>
</DataTemplate>
i want to set the value of the image and the label in code
thank you
Hello medo_king1000,
It has been a while since you have made your post, in case you still need any support I will be glad to assist you on the matter. I suppose the other community members can benefit from this answer as well.
Regarding your issue you can set this values by binding them to the properties in your C# code or by setting the whole DataTemplate in the code behind. For further reference I can suggest you check the following links:
http://help.infragistics.com/Help/NetAdvantage/WPF/2011.1/CLR4.0/html/InfragisticsWPF4.v11.1~Infragistics.Windows.Reporting.ReportBase~PageHeader.html
If you still need any assistance on this and I will be glad to help.