Get way further

This commit is contained in:
2025-10-22 17:31:32 -05:00
parent 7c4f85ec21
commit 27f301fe48
39 changed files with 2028 additions and 123 deletions

View File

@@ -1,4 +1,5 @@
using Avalonia.Controls;
using AvaloniaEdit;
using CrossLangDevStudio.ViewModels;
namespace CrossLangDevStudio.Views;
@@ -8,5 +9,21 @@ public partial class FileEditorView : UserControl
public FileEditorView()
{
InitializeComponent();
this.Loaded += (sender, e) =>
{
if (this.DataContext is FileEditorViewModel dc)
{
this.Content = dc.TextEditor;
}
};
this.Unloaded += (sender, e) =>
{
this.Content = null;
};
}
}