在原型項目中編輯ControlTemplate
後,我決定將自定義ControlTemplate
移到我的主項目中。這並沒有開箱的預期時,Visual Studio通知我下面的錯誤:SystemColor缺失InactiveSelectionHighlightTextBrushKey
Error Cannot find the static member 'InactiveSelectionHighlightBrushKey' on the type 'SystemColors'.
有沒有在XAML源沒有亮點和警告,所以並不清楚發生了什麼事。去的「InactiveSelectionHighlightBrushKey
」的定義,我沒有看到SystemColors
成員列表中的條目:
我發現在我的工程樣機的對象瀏覽器的成員。 SystemColors類在我的主項目中如何不完整?
您定位的是哪個框架版本?對MSDN的支持是在4.5中添加的:https://msdn.microsoft.com/library/system.windows.systemcolors.inactiveselectionhighlightbrushkey(v=vs.110).aspx –
@FlatEric .NET Framework 4.5.2 – oddRaven