Artyom V. Gorchakov
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
src/XamlNameReferenceGenerator/NameReferenceGenerator.cs
|
|
|
@ -109,8 +109,8 @@ internal sealed class GenerateTypedNameReferencesAttribute : Attribute { } |
|
|
|
var namedControls = nameResolver |
|
|
|
.ResolveNames(xamlFile.GetText()!.ToString()) |
|
|
|
.Select(info => " " + |
|
|
|
$"internal {info.TypeName} {info.Name} => " + |
|
|
|
$"this.FindControl<{info.TypeName}>(\"{info.Name}\");"); |
|
|
|
$"internal global::{info.TypeName} {info.Name} => " + |
|
|
|
$"this.FindControl<global::{info.TypeName}>(\"{info.Name}\");"); |
|
|
|
return $@"// <auto-generated />
|
|
|
|
|
|
|
|
using Avalonia.Controls; |
|
|
|
@ -182,4 +182,4 @@ namespace {nameSpace} |
|
|
|
return symbols; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|