fix: fix reapplying template initialization issue.
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using Avalonia.Layout;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
namespace Ursa.Demo.ViewModels;
|
||||
|
||||
public class RangeSliderDemoViewModel: ObservableObject
|
||||
public partial class RangeSliderDemoViewModel: ObservableObject
|
||||
{
|
||||
|
||||
public ObservableCollection<Orientation> Orientations { get; set; } = new ObservableCollection<Orientation>()
|
||||
{
|
||||
Orientation.Horizontal,
|
||||
Orientation.Vertical
|
||||
};
|
||||
|
||||
[ObservableProperty] private Orientation _orientation;
|
||||
}
|
||||
Reference in New Issue
Block a user