WPF日历控件
问题描述:
您好,我想知道您是否可以指导我如何自定义日历控件.
试图实现的目的是在我的comobox中添加一个日历控件.这是comobox的.xaml
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
<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>
当它在comboxbox列表中时,在选择一个项目后我会弹出一个日历.例如,对于每月",它将仅在日历中显示一年中的月份.
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.
答
Hello
如果要自定义日历控件:自定义新的WPF日历控件
该链接包含三种日历显示模式.
Hello
If you want to customize the Calendar Control: Customizing the New WPF Calendar Controls
The link contains the three Calendar display modes.