A cross-platform UI framework for .NET
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.
 
 
 

32 lines
680 B

using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using ReactiveUI;
namespace ControlCatalog.Pages
{
public class TestViewModel : ReactiveObject
{
private string testText = "Editable TextBlock";
public string TestText
{
get { return testText; }
set { this.RaiseAndSetIfChanged(ref testText, value); }
}
}
public class TextBoxPage : UserControl
{
public TextBoxPage()
{
this.InitializeComponent();
DataContext = new TestViewModel();
}
private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
}