【发布时间】:2015-09-17 14:08:25
【问题描述】:
我正在开发一个 Windows 应用商店 (8.1) 应用程序。
我有这个控件,它有一个可以为空的 int 属性(类型“int?”),当我尝试通过 Style 将它设置为 int 时,我得到一个错误。
<Setter Property="Minimum" Value="0" />
Error Cannot assign to nullable type on property Minimum
有什么想法吗?
【问题讨论】:
标签: c# .net wpf windows-store-apps winrt-xaml