更新
This commit is contained in:
10
WPFDark/Internals/WpfHelper.cs
Normal file
10
WPFDark/Internals/WpfHelper.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace WPFDark.Internals
|
||||
{
|
||||
internal static class WpfHelper
|
||||
{
|
||||
internal static double PixelsPerDip(this Visual visual)
|
||||
=> VisualTreeHelper.GetDpi(visual).DpiScaleX;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user