Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4043568
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:08:36+00:00 2026-05-20T13:08:36+00:00

The silverlight datepicker can zoom out to allow a user to select by year,

  • 0

The silverlight datepicker can zoom out to allow a user to select by year, but for some reason the first and last years always look disabled. Is there a way to prevent this?

Silverlight Datepicker

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T13:08:36+00:00Added an answer on May 20, 2026 at 1:08 pm

    This is one of the many places where the color and style of elements are hardcoded into their default templates. Hence to change the appearance of these “inactive” calendar buttons you need to define a new template.

    First you need to create a copy of the controlsPrivitives:CalendarButton style, you can get a copy of the style from Calendar Styles and Templates. Place this in the Resources for your user control or even in your App.Xaml. You’ll need to copy the namespace aliases also listed in that MSDN topic.

    Now you have your own implicit style for the calendar button that you can modify. You’ll note the template in that xaml has this visual state group:-

                               <vsm:VisualStateGroup x:Name="ActiveStates">
                                    <vsm:VisualStateGroup.Transitions>
                                        <vsm:VisualTransition GeneratedDuration="0" />
                                    </vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualState x:Name="Active" />
                                    <vsm:VisualState x:Name="Inactive">
                                        <Storyboard>
                                            <ColorAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground).(SolidColorBrush.Color)" To="#FF777777" Duration="0" />
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
    

    Those years outside of the range are set to the Inactive state and therefore have the hard coded grey color you see in the Inactive state above. So tweak this xaml to your preference.

    If you want the same for day buttons you should note that these have a different control CalendarDayButton so you’ll need to do the same exercise on its default style.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Silverlight experts out there, I need some help. I used Deep Zoom Composer to
How can I set the System.Windows.Controls.DatePicker control as used within a Silverlight project to
I'm using the Silverlight Toolkit DatePicker control. If an user enters an invalid format
Silverlight can use WCF, Web Services, REST based services, .NET RIA Services, but it
With Silverlight 4, I can select one or more cells (or rows and columns)
I am using the vanilla datepicker in Silverlight 2. I bind the selected date
Silverlight v2.0 is getting closer and closer to RTM but I have yet to
Silverlight has been available since quite some time, and Silverlight 2 allows .Net programming
Silverlight filter/class for cloud generation? Some HLSL or just C# class for generating clouds?
Silverlight Out-of-browser applications get installed to a seemingly random location: AppData\LocalLow\Microsoft\Silverlight\OutOfBrowser\2333572144.www.microsoft.com for example. Currently,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.