【发布时间】:2017-03-09 17:04:47
【问题描述】:
当我尝试使用 .net framework 4.6.2 构建 WPF 项目时,出现错误,因为 FormattedText() 已过时,如下所示: [过时("使用 PixelsPerDip 覆盖", false)] public FormattedText(string textToFormat, CultureInfoculture, FlowDirection flowDirection, Typeface typeface, double emSize, Brush foreground);
新的覆盖方法是 public FormattedText(string textToFormat, CultureInfoculture, FlowDirection flowDirection, Typeface typeface, double emSize, Brush foreground, double pixelPerDip);
问:如何确定像素点数?
问:我如何使用没有pixelPerDip 的旧构造函数?因为pixelPerDip 对我的项目没有用。
【问题讨论】:
标签: c# wpf-controls .net-4.6.2