using System.Collections.ObjectModel; using CommunityToolkit.Mvvm.ComponentModel; using ElectronBot.Braincase.Models; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Media; using Microsoft.UI.Xaml.Media.Imaging; using Verdure.ElectronBot.Core.Models; namespace ElectronBot.Braincase.ViewModels; public partial class MainViewModel : ObservableRecipient { [ObservableProperty] int selectIndex; [ObservableProperty] int interval; /// /// 时钟选中数据 /// [ObservableProperty] ComboxItemModel clockComBoxSelect; /// /// 表盘列表 /// [ObservableProperty] public ObservableCollection clockComboxModels; /// /// 当前播放表情 /// [ObservableProperty] ImageSource emojiImageSource; /// /// 表盘内容 /// [ObservableProperty] UIElement element; [ObservableProperty] string resultLabel; /// /// 头部舵机 /// [ObservableProperty] float j1; /// /// 左臂展开 /// [ObservableProperty] float j2; /// /// 左臂旋转 /// [ObservableProperty] float j3; /// /// 右臂展开 /// [ObservableProperty] float j4; /// /// 右臂旋转 /// [ObservableProperty] float j5; /// /// 底盘转动 /// [ObservableProperty] float j6; [ObservableProperty] public Image faceImage = new() { Source = new BitmapImage(new Uri("ms-appx:///Assets/LargeTile.scale-200.png")) }; [ObservableProperty] ElectronBotAction selectdAction = new(); [ObservableProperty] ObservableCollection actions = new(); }