Click here to Skip to main content
14,930,405 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi, I was wondering if you can guide me on how I can customize a Calendar Control.
What am trying to achieve is that to add a calendar control inside my comobox. Here is .xaml for the comobox

HTML
<combobox grid.row="0" grid.column="0" height="23" horizontalalignment="Left" name="comboBox1" verticalalignment="Bottom" width="120" margin="100,0,0,0">
            <comboboxitem name="cbi1">Daily</comboboxitem>
            <comboboxitem name="cbi3">Monthly></comboboxitem>
             </combobox>


When it the comboxbox list the list item upon selecting an item I would like to pop-out a calender. For instance for Monthly it will only display the months of the year in the calendar.
Posted
Updated 5-Apr-12 10:27am
v2
Comments
Fistum Mekuria 6-Apr-12 0:11am
   
Thank you for your reply. What I wanted to do is that to add that into the combooxitem. I did this, but the problem I am having is that I wanted to bind the each month with my database so when user click in each month it will draw a line chart.

<combobox grid.row="0" grid.column="0" height="23" horizontalalignment="Left" name="comboBox1" verticalalignment="Bottom" width="120" margin="100,0,0,0">
<comboboxitem name="Week">
<calendar selectionmode="MultipleRange">

<comboboxitem name="Month">
<calendar displaymode="Year">

1 solution

Hello

If you want to customize the Calendar Control: Customizing the New WPF Calendar Controls
The link contains the three Calendar display modes.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900