diff --git a/sample/App.xaml b/sample/App.xaml
index 6cc46f7..eb53a02 100644
--- a/sample/App.xaml
+++ b/sample/App.xaml
@@ -2,7 +2,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="AvaloniaGraphControlSample.App">
-
-
+
diff --git a/sample/AvaloniaGraphControlSample.csproj b/sample/AvaloniaGraphControlSample.csproj
index 782adbe..d702dec 100644
--- a/sample/AvaloniaGraphControlSample.csproj
+++ b/sample/AvaloniaGraphControlSample.csproj
@@ -1,9 +1,11 @@
+
False
WinExe
netcoreapp3.1
+
%(Filename)
@@ -12,12 +14,21 @@
Designer
+
-
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sample/MainWindow.xaml b/sample/MainWindow.xaml
index ece2d29..6de8354 100644
--- a/sample/MainWindow.xaml
+++ b/sample/MainWindow.xaml
@@ -1,48 +1,94 @@
-
-
-
- Select Graph:
-
- Select Zoom:
-
- Select Layout Method:
-
-
-
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/sample/Program.cs b/sample/Program.cs
index 3d3d6f3..ccaf833 100644
--- a/sample/Program.cs
+++ b/sample/Program.cs
@@ -1,5 +1,4 @@
using Avalonia;
-using Avalonia.Logging.Serilog;
namespace AvaloniaGraphControlSample
{
@@ -15,6 +14,6 @@ public static void Main(string[] args) => BuildAvaloniaApp()
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure()
.UsePlatformDetect()
- .LogToDebug();
+ .LogToTrace();
}
}
diff --git a/src/AvaloniaGraphControl.csproj b/src/AvaloniaGraphControl.csproj
index e9b9901..81700c4 100644
--- a/src/AvaloniaGraphControl.csproj
+++ b/src/AvaloniaGraphControl.csproj
@@ -21,7 +21,7 @@
-
+
diff --git a/src/Factory.cs b/src/Factory.cs
index c10b60c..67284d1 100644
--- a/src/Factory.cs
+++ b/src/Factory.cs
@@ -16,8 +16,9 @@ public static FormattedText CreateText(MsaglDrawing.Label label)
var ftext = new FormattedText
{
Constraint = new Size(10, 10),
- Typeface = new Typeface(fontFamily, fontSize, fontStyle, fontWeight),
- Text = label.Text
+ Typeface = new Typeface(fontFamily, fontStyle, fontWeight),
+ Text = label.Text,
+ FontSize = fontSize,
};
return ftext;
}