Skip to content

Commit

Permalink
Remove InitializeComponent implementations
Browse files Browse the repository at this point in the history
Now, when Avalonia.NameGenerator package is included,
InitializeComponent() implementations in code-behind
does hides auto-generated InitializeComponent() which
can cause different WTFs and confusion. so it should be removed.
  • Loading branch information
Dmitriy Yukhanov committed Apr 5, 2022
1 parent 4c541ea commit 1237a58
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions templates/csharp/usercontrol/NewUserControl.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,5 @@ public NewUserControl()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
}
10 changes: 0 additions & 10 deletions templates/csharp/window/NewWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@ public partial class NewWindow : Window
public NewWindow()
{
InitializeComponent();
//-:cnd:noEmit
#if DEBUG
this.AttachDevTools();
#endif
//+:cnd:noEmit
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
}

0 comments on commit 1237a58

Please sign in to comment.