Skip to content

Commit

Permalink
Remove not needed InitializeComponent method declaration. (#78)
Browse files Browse the repository at this point in the history
* Remove not needed InitializeComponent method declaration.

* bump version
  • Loading branch information
Takoooooo authored Feb 14, 2022
1 parent 08a4289 commit 1a21147
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 42 deletions.
2 changes: 1 addition & 1 deletion Avalonia.Templates.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageType>Template</PackageType>
<PackageVersion>0.10.12</PackageVersion>
<PackageVersion>0.10.12.1</PackageVersion>
<PackageId>Avalonia.Templates</PackageId>
<Title>Avalonia Templates</Title>
<Description>Templates for creating Avalonia applications and libraries.</Description>
Expand Down
12 changes: 0 additions & 12 deletions templates/csharp/app-mvvm/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;

namespace AvaloniaAppTemplate.Views
{
Expand All @@ -9,16 +7,6 @@ public partial class MainWindow : Window
public MainWindow()
{
InitializeComponent();
//-:cnd:noEmit
#if DEBUG
this.AttachDevTools();
#endif
//+:cnd:noEmit
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
}
12 changes: 0 additions & 12 deletions templates/csharp/app/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;

namespace AvaloniaAppTemplate
{
Expand All @@ -9,16 +7,6 @@ public partial class MainWindow : Window
public MainWindow()
{
InitializeComponent();
//-:cnd:noEmit
#if DEBUG
this.AttachDevTools();
#endif
//+:cnd:noEmit
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
}
7 changes: 0 additions & 7 deletions templates/csharp/xplat/AvaloniaTest/Views/MainView.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;

namespace AvaloniaTest.Views
{
Expand All @@ -10,10 +8,5 @@ public MainView()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
}
10 changes: 0 additions & 10 deletions templates/csharp/xplat/AvaloniaTest/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;

namespace AvaloniaTest.Views
{
Expand All @@ -9,14 +7,6 @@ public partial class MainWindow : Window
public MainWindow()
{
InitializeComponent();
#if DEBUG
this.AttachDevTools();
#endif
}

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

0 comments on commit 1a21147

Please sign in to comment.