csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.4 KiB
40 lines
1.4 KiB
// <auto-generated />
|
|
|
|
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Markup.Xaml;
|
|
|
|
namespace Sample.App
|
|
{
|
|
partial class SampleView
|
|
{
|
|
[global::System.CodeDom.Compiler.GeneratedCode("Avalonia.Generators.NameGenerator.InitializeComponentCodeGenerator", "$GeneratorVersion")]
|
|
internal global::Avalonia.Controls.TextBox UserNameTextBox;
|
|
|
|
/// <summary>
|
|
/// Wires up the controls and optionally loads XAML markup and attaches dev tools (if Avalonia.Diagnostics package is referenced).
|
|
/// </summary>
|
|
/// <param name="loadXaml">Should the XAML be loaded into the component.</param>
|
|
/// <param name="attachDevTools">Should the dev tools be attached.</param>
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("Avalonia.Generators.NameGenerator.InitializeComponentCodeGenerator", "$GeneratorVersion")]
|
|
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
|
|
public void InitializeComponent(bool loadXaml = true, bool attachDevTools = true)
|
|
{
|
|
if (loadXaml)
|
|
{
|
|
AvaloniaXamlLoader.Load(this);
|
|
}
|
|
|
|
#if DEBUG
|
|
if (attachDevTools)
|
|
{
|
|
this.AttachDevTools();
|
|
}
|
|
#endif
|
|
|
|
var __thisNameScope__ = this.FindNameScope();
|
|
UserNameTextBox = __thisNameScope__?.Find<global::Avalonia.Controls.TextBox>("UserNameTextBox");
|
|
}
|
|
}
|
|
}
|
|
|