CurrentDate style question

5 posts, 1 answers
  1. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 17 Jan 2014 Link to this post

    Hi,

    I'm using a WeekViewDefinition and I format the columns headers to display only the day of the week. The column representing the current date is sourrounded with a different color and I would like cancel this behaviour to have the style of my column the same as they other columns.

    Thank's
    Alain
  2. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 22 Jan 2014 Link to this post

    Hi Alain,

    You can achieve the desired appearance by extracting and modifying the default ControlTemplate of the GroupHeaders (you need to remove the VisualStates for Today and TodayHorizontal). You can implement a custom GroupHeaderStyleSelector which will be returning a Style with the edited ControlTemplate when you are in WeekViewDefinition. I have prepared and attached here a sample project which demonstrates the exact approach.

    Hope this helps.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 22 Jan 2014 Link to this post

    Hi Kalin,

    almost done except one thing, with the Office 2013 theme, vertical lines dissapeared!!!

    Thank's
    Alain
  5. Answer
    Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 24 Jan 2014 Link to this post

    Hi Alain,

    I have modified the same project in order to use the Office2013 theme. In my previous post I missed to mention that you also need to set the IsToday property of the GroupHeaderButton named Header to False.

    Hope this works for you.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 24 Jan 2014 Link to this post

    Hi Kalin,

    perfect, thank you :)

    Alain
Back to Top
UI for WPF is Visual Studio 2017 Ready