[SOLVED] How Can I Disable Year Selection in WPF Calendar

Issue

  • I want to make a calendar like Google’s Calendar to Show all days of the year in one screen.
    • I will use 12 Calendar instances.
  • I want To disable the year selection from the header of the WPF Calendar to look like a label, rather than a clickable button.

WPF Calendar

Solution

I did it by setting "IsHitTestVisible" = false to "PART_HeaderButton" in the Control Template.
this is the Control template Which i used

Calendar Control Template

Answered By – Peter Boshra

Answer Checked By – Marie Seifert (BugsFixing Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *