本文介绍了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.
推荐答案
这篇关于WPF日历控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!