如何在SIlverlight 4 Toolkit中启用TimePicker?
根据 Silverlight Toolkit 网站,他们有一个 TimePicker 作为预览版。
我已经安装了该工具包,但看不到它。如何激活像 TimePicker 这样的预览控件?
非常感谢,
According to the Silverlight Toolkit website they have a TimePicker as Preview available.
I have installed the toolkit but don't get to see it. How do I activate the Preview controls like the TimePicker?
Many thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您在工具箱中没有看到 TimePicker,请右键单击,选择“选择项目”并手动添加。如果您在那里找不到它,则意味着工具包程序集未正确注册。您可以做的就是在解决方案中添加对它们的引用并直接访问控件。 TimePicker 位于 System.Windows.Controls.Toolkit.dll 的
System.Windows.Controls.Toolkit
命名空间中希望这会有所帮助:)
If you don't see the TimePicker in your Toolbox, right-click, select "Choose Items" and add it manually. If you don't find it there, this means that the toolkit assemblies aren't registered correctly. What you can do is add a reference to them in your solution and access the controls directly. TimePicker is in
System.Windows.Controls.Toolkit
namespace in System.Windows.Controls.Toolkit.dllHope this helps :)
对于 TimePicker 控件,您需要引用以下 dll:
System.Windows.Controls.Input.Toolkit.dll
接下来,将以下命名空间添加到XAML:
xmlns:toolkitInput="clr-namespace:System.Windows.Controls; assembly=System.Window s.Controls.Input.Toolkit"
现在您可以将 TimePicker 控件用作:
For TimePicker control you need to reference the following dll:
System.Windows.Controls.Input.Toolkit.dll
Next, add the following namespace to XAML:
xmlns:toolkitInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
Now you can use the TimePicker control as:
<toolkitInput:TimePicker Value="{Binding Model.ExecutionFrequencyStartTime, Mode=TwoWay}" />