From 66299c0caceea7b15894c2b27c95567a9010d852 Mon Sep 17 00:00:00 2001 From: Mohamed Elhennawy Date: Mon, 3 Apr 2023 10:14:17 +0200 Subject: [PATCH] Revert changes for `EtoMainCanvas` to be non generic again --- src/Eto.Wpf/Forms/Controls/DrawableHandler.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Eto.Wpf/Forms/Controls/DrawableHandler.cs b/src/Eto.Wpf/Forms/Controls/DrawableHandler.cs index a1eda19994..45c13b2be6 100644 --- a/src/Eto.Wpf/Forms/Controls/DrawableHandler.cs +++ b/src/Eto.Wpf/Forms/Controls/DrawableHandler.cs @@ -56,12 +56,9 @@ public Size TileSize } } - public class EtoMainCanvas : swc.Canvas - where TTControl : swc.Canvas - where TTWidget : Drawable - where TTCallback : Drawable.ICallback + public class EtoMainCanvas : swc.Canvas { - public DrawableHandler Handler { get; set; } + public DrawableHandler Handler { get; set; } protected override void OnMouseDown(sw.Input.MouseButtonEventArgs e) { @@ -173,7 +170,7 @@ public override void OnUnLoad(EventArgs e) protected override TControl CreateControl() { - return new EtoMainCanvas + return new EtoMainCanvas { Handler = this, SnapsToDevicePixels = true,