Skip to content

Commit

Permalink
Revert changes for EtoMainCanvas to be non generic again
Browse files Browse the repository at this point in the history
  • Loading branch information
eng-myousif committed Apr 3, 2023
1 parent 63df69b commit 66299c0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Eto.Wpf/Forms/Controls/DrawableHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ public Size TileSize
}
}

public class EtoMainCanvas<TTControl, TTWidget, TTCallback> : swc.Canvas
where TTControl : swc.Canvas
where TTWidget : Drawable
where TTCallback : Drawable.ICallback
public class EtoMainCanvas : swc.Canvas
{
public DrawableHandler<TTControl, TTWidget, TTCallback> Handler { get; set; }
public DrawableHandler<TControl, TWidget, TCallback> Handler { get; set; }

protected override void OnMouseDown(sw.Input.MouseButtonEventArgs e)
{
Expand Down Expand Up @@ -173,7 +170,7 @@ public override void OnUnLoad(EventArgs e)

protected override TControl CreateControl()
{
return new EtoMainCanvas<TControl, TWidget, TCallback>
return new EtoMainCanvas
{
Handler = this,
SnapsToDevicePixels = true,
Expand Down

0 comments on commit 66299c0

Please sign in to comment.