Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
Customized Header and Footer
posted

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>

<Page.Resources>

i want to set the value of the image and the label in code

 

thank you