@ -1,4 +1,4 @@
[](https://www.nuget.org/packages/XamlNameReferenceGenerator) [](https://www.nuget.org/packages/XamlNameReferenceGenerator)   
[](https://www.nuget.org/packages/Avalonia.NameGenerator) [](https://www.nuget.org/packages/Avalonia.NameGenerator)   
> **Warning** This tool hasn't been extensively tested, so use at your own risk.
@ -27,14 +27,14 @@ So in your project file you write the following code:
And then you reference the source generator by installing a NuGet package:
```
dotnet add package XamlNameReferenc eGenerator
dotnet add package Avalonia.Nam eGenerator
```
Or, if you are using submodules, reference the generator as such:
```xml
< ItemGroup >
< ProjectReference Include = "../XamlNameReferenceGenerator/XamlNameReferenc eGenerator.csproj"
< ProjectReference Include = ".. \Avalonia.NameGenerator \Avalonia.Nam eGenerator.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false" />
< / ItemGroup >
@ -58,7 +58,7 @@ public partial class SignUpView : Window
### What do the generated sources look like?
For the [`SignUpView` view class ](https://github.com/worldbeater/XamlNameReferenceGenerator/blob/main/src/XamlNameReferenc eGenerator.Sandbox/Views/SignUpView.xaml ) from [the sandbox project ](https://github.com/worldbeater/XamlNameReferenceGenerator/tree/main/XamlNameReferenc eGenerator.Sandbox ), we get the following generated output:
For the [`SignUpView` view class ](https://github.com/avaloniaui/Avalonia.NameGenerator/blob/main/src/Avalonia.Nam eGenerator.Sandbox/Views/SignUpView.xaml ) from [the sandbox project ](https://github.com/avaloniaui/Avalonia.NameGenerator/tree/main/Avalonia.Nam eGenerator.Sandbox ), we get the following generated output:
```cs
// < auto-generated / >
@ -69,7 +69,7 @@ namespace Your.View.Namespace
{
partial class SignUpView
{
internal global::XamlNameReferenc eGenerator.Sandbox.Controls.CustomTextBox UserNameTextBox => this.FindControl< global::XamlNameReferenc eGenerator.Sandbox.Controls.CustomTextBox > ("UserNameTextBox");
internal global::Avalonia.Nam eGenerator.Sandbox.Controls.CustomTextBox UserNameTextBox => this.FindControl< global::Avalonia.Nam eGenerator.Sandbox.Controls.CustomTextBox > ("UserNameTextBox");
internal global::Avalonia.Controls.TextBlock UserNameValidation => this.FindControl< global::Avalonia.Controls.TextBlock > ("UserNameValidation");
internal global::Avalonia.Controls.TextBox PasswordTextBox => this.FindControl< global::Avalonia.Controls.TextBox > ("PasswordTextBox");
internal global::Avalonia.Controls.TextBlock PasswordValidation => this.FindControl< global::Avalonia.Controls.TextBlock > ("PasswordValidation");