草庐IT

pixelsPerDip

全部标签

c# - 在 .NET Framework 4.6.2 中,FormattedText() 已过时,我该如何修复它

当我尝试使用.netFramework4.6.2构建WPF项目时,出现错误,因为FormattedText()已过时,如下所示:[过时(“使用PixelsPerDip覆盖”,false)]publicFormattedText(stringtextToFormat,CultureInfoculture,FlowDirectionflowDirection,Typeface字体,doubleemSize,Brushforeground);新的覆盖方法是publicFormattedText(stringtextToFormat,CultureInfoculture,FlowDirecti