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,