8 changed files with 50 additions and 5 deletions
@ -0,0 +1,7 @@ |
|||
namespace Avalonia.Platform |
|||
{ |
|||
public interface IModuleEnvironmentChecker |
|||
{ |
|||
bool IsCompatible { get; } |
|||
} |
|||
} |
|||
@ -0,0 +1,15 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Avalonia.Platform; |
|||
|
|||
namespace Avalonia.Direct2D1 |
|||
{ |
|||
class WindowsVersionChecker : IModuleEnvironmentChecker |
|||
{ |
|||
//Direct2D backend doesn't work with Win7 anymore
|
|||
public bool IsCompatible => Environment.OSVersion.Version >= new Version(6, 2); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue