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
1235
DayViewTimeslotHeader customization
posted

Hi,

is it possible to customize the DayViewTimeslotHeader so it appears as you can see in the attachment?
I would like to see the minutes, in addiition to hours.
Thanks

Roberto 

Parents
  • 2180
    Offline posted

    Hi Roberto,

    You have to re-template the DayViewTimeslotHeader, adding a TextBlock bound to the Start.Minute property of the DayViewTimeslotHeader.
      <TextBlock Text="{Binding Path=Start.Minute, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
                                               Foreground="{TemplateBinding ComputedForeground}"
                                               Visibility="{Binding Path=LeadingTickmarkKind, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource tsTickmarkKindToVisibilityNotConverter}}"
                                               HorizontalAlignment="Right" Margin="0,3,7,0"></TextBlock>
    I attached the sample application.

    Thanks,
    Diyan Dimitrov

    ScheduleSample.zip
Reply Children
No Data