1234567891011121314151617181920212223242526272829 |
- using Avalonia.Collections;
- using Avalonia.Controls;
- using Avalonia.Markup.Xaml;
- using Editopia.Editor.Pages;
- using System;
- using System.Collections;
- using System.Collections.Generic;
-
- namespace Editopia.Editor
- {
- public class MainView : UserControl
- {
- public MainView()
- {
- this.InitializeComponent();
- }
-
- private void InitializeComponent()
- {
- AvaloniaXamlLoader.Load(this);
- IList tabItems = ((IList)this.FindControl<TabControl>("Sidebar").Items);
- tabItems.Add(new TabItem()
- {
- Header = "Trainer Page",
- Content = new EditTrainer()
- });
- }
- }
- }
|