using System; using System.Linq; using Avalonia.Controls; using Avalonia.Controls.Templates; using Avalonia.Interactivity; using FluentAvalonia.UI.Controls; using StabilityMatrix.Avalonia.Controls; using StabilityMatrix.Avalonia.Models; using StabilityMatrix.Avalonia.ViewModels; namespace StabilityMatrix.Avalonia.Views; public partial class InferencePage : UserControlBase { private Button? _addButton; private Button AddButton => _addButton ??= this.FindControl("TabView")! .GetTemplateChildren() .OfType