You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The browser's display of text is also abnormal, and it cannot be automatically updated by MVVM, but Windows can function normally.
using ReactiveUI;
namespace AvaloniaApplication2.ViewModels;
public class MainViewModel : ViewModelBase
{
private string _greeting = "Welcome to Avalonia!";
public string Greeting
{
get => _greeting;
set => this.RaiseAndSetIfChanged(ref _greeting, value);
}
}
using Avalonia.Controls;
using Avalonia.Interactivity;
using AvaloniaApplication2.ViewModels;
namespace AvaloniaApplication2.Views;
public partial class MainView : UserControl
{
MainViewModel viewModel;
public MainView()
{
InitializeComponent();
viewModel=new MainViewModel();
DataContext = viewModel;
}
private void Button_OnClick(object? sender, RoutedEventArgs e)
{
viewModel.Greeting = "11111111111";
}
}
Describe the bug
The browser's display of text is also abnormal, and it cannot be automatically updated by MVVM, but Windows can function normally.
To Reproduce
AvaloniaApplication2.zip
Expected behavior
No response
Avalonia version
11.0.10
OS
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: