Skip to content

Commit

Permalink
docs: Document this.AttachDevTools() generation (#36)
Browse files Browse the repository at this point in the history
* docs: Document this.AttachDevTools() generation
* Update version.json
  • Loading branch information
worldbeater committed Feb 22, 2021
1 parent 6e621e5 commit 7d74612
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ namespace Sample.App
AvaloniaXamlLoader.Load(this);
}

#if DEBUG
// This will be added only if you install Avalonia.Diagnostics.
this.AttachDevTools();
#endif

UserNameTextBox = this.FindControl<global::Avalonia.NameGenerator.Sandbox.Controls.CustomTextBox>("UserNameTextBox");
UserNameValidation = this.FindControl<global::Avalonia.Controls.TextBlock>("UserNameValidation");
PasswordTextBox = this.FindControl<global::Avalonia.Controls.TextBox>("PasswordTextBox");
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "0.4",
"version": "0.5",
"assemblyVersion": {
"precision": "revision"
},
Expand Down

0 comments on commit 7d74612

Please sign in to comment.