mirror of
https://onedev.site.tesses.net/crosslang/crosslangdevstudio
synced 2026-02-08 09:15:45 +00:00
Get way further
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user