我收到一个错误:'下划线'无法转换为System.Windows.TextDecoration'的实例。

时间:2013-12-30 15:14:19

标签: c# wpf visual-studio visual-studio-2012

我正在尝试在Settings中创建一些Project Properties

当我选择dataType时,它不会显示System.Windows.TextDecoration。所以,我选择Browse..,然后在那里输入System.Windows.TextDecoration。现在,当我输入值Underline时,它会显示

'Underline' Cannot be converted to an instance of 'System.Windows.TextDecoration'

以下是我正在尝试的屏幕截图:

enter image description here

嗯,矩形的内容描述了我的问题。

正如您在上图所示,在红色矩形的正上方,我为fontstyle创建了一个设置,效果很好。

0 个答案:

没有答案