WPF中的DateTimePicker样式更改 [英] DateTimePicker style change in wpf

查看:670
本文介绍了WPF中的DateTimePicker样式更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在wpf应用程序中使用DateTimePicker
我可以在左侧和右侧获得一个月的日期,我可以看到时间.
当左侧日期选择器的时间间隔为1小时时,每件事都是完美的..

布局很好

但是当间隔为30分钟时,时间选择器有很多值,并且日期显示为丑陋..我的意思是布局丑陋

有没有一种方法可以在日期时间选择器的时间面板中添加滚动条?
请指教

I am using DateTimePicker in my wpf application
i am able to get the date of a month in left side and right side i am able to see the time .
Every thing is perfect when Left side date picker time interval is 1 hour..

the layout is fine

but when the interval is 30 mins the time picker has a lot of values and the date is shown ugly .. i mean the layout is ugly

is there a way to add scroll bar in the time panel of date time picker??
please advise

推荐答案

以下是一个示例,可以让您...在WPF上使用完整的WPF :)
http://msdn.microsoft.com/en-us/magazine/dd882520.aspx [ ^ ]
Here is one example that allows you to go... well, full WPF on WPF :)
http://msdn.microsoft.com/en-us/magazine/dd882520.aspx[^]


这篇关于WPF中的DateTimePicker样式更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆