misc: success, warning, danger/error order.

This commit is contained in:
Zhang Dian
2023-10-09 02:11:21 +08:00
parent 80fc6ffa7b
commit 807485150d
7 changed files with 41 additions and 37 deletions

View File

@@ -14,16 +14,17 @@ public partial class BannerDemo : UserControl
InitializeComponent();
this.DataContext = new BannerDemoViewModel();
}
private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
public class BannerDemoViewModel: ViewModelBase
public class BannerDemoViewModel : ViewModelBase
{
private ObservableCollection<NotificationType> _types;
public ObservableCollection<NotificationType> Types
{
get => _types;
@@ -48,6 +49,9 @@ public class BannerDemoViewModel: ViewModelBase
public BannerDemoViewModel()
{
Types = new ObservableCollection<NotificationType>() { NotificationType.Information, NotificationType.Warning, NotificationType.Error, NotificationType.Success };
Types = new ObservableCollection<NotificationType>()
{
NotificationType.Information, NotificationType.Success, NotificationType.Warning, NotificationType.Error
};
}
}