using System.Diagnostics;
using System.IO;
using Crow;
+using System.Reflection;
+using System.Runtime.InteropServices;
namespace PerfTests
{
class TestInterface : Interface
{
+#if NETCOREAPP
+ static IntPtr resolveUnmanaged (Assembly assembly, String libraryName) {
+
+ switch (libraryName)
+ {
+ case "glfw3":
+ return NativeLibrary.Load("glfw", assembly, null);
+ case "rsvg-2.40":
+ return NativeLibrary.Load("rsvg-2", assembly, null);
+ }
+ Console.WriteLine ($"[UNRESOLVE] {assembly} {libraryName}");
+ return IntPtr.Zero;
+ }
+
+ static TestInterface () {
+ System.Runtime.Loader.AssemblyLoadContext.Default.ResolvingUnmanagedDll+=resolveUnmanaged;
+ }
+#endif
readonly int count = 1, updateCycles = 0;
readonly bool miliseconds = false;
readonly bool resetItors = false;
<VerticalStack Fit="true">
<TextBox Font="droid, 20" Text="test text box" Width="Stretched"/>
<HorizontalStack Margin="5" Fit="true" MouseEnter="{Background=White}" MouseLeave="{Background=Transparent}">
- <Label Text="left" Width="80" Height="30" Background="DarkBlue" TextAlignment="Left"/>
- <Label Text="centered" Width="80" Height="30" Background="DarkBlue" TextAlignment="Center"/>
- <Label Text="top left" Width="80" Height="30" Background="DarkBlue" TextAlignment="TopLeft"/>
- <Label Text="top right" Width="80" Height="30" Background="DarkBlue" TextAlignment="TopRight"/>
- <Label Text="right" Width="80" Height="30" Background="DarkBlue" TextAlignment="Right"/>
- <Label Text="bottom left" Width="80" Height="30" Background="DarkBlue" TextAlignment="BottomLeft"/>
- <Label Text="bottom" Width="80" Height="30" Background="DarkBlue" TextAlignment="Bottom"/>
- <Label Text="bottom right" Width="80" Height="30" Background="DarkBlue" TextAlignment="BottomRight"/>
+ <Label Focusable="true" Text="left" Width="80" Height="30" Background="DarkBlue" TextAlignment="Left"/>
+ <Label Focusable="true" Text="centered" Width="80" Height="30" Background="DarkBlue" TextAlignment="Center"/>
+ <Label Focusable="true" Text="right" Width="80" Height="30" Background="DarkBlue" TextAlignment="Right"/>
</HorizontalStack>
</VerticalStack>
\ No newline at end of file