using CommunityToolkit.Mvvm.ComponentModel; using OpenTap; using OpenTap.Addin; using System.Collections.ObjectModel; using System.Windows; using System.Windows.Controls; namespace OpenTapEditor { /// /// VariablesControl.xaml 的交互逻辑 /// [ObservableObject] public partial class RunVariableControl : UserControl { public event EventHandler SequencePropertyChanged; public static DependencyProperty VariablesProperty = DependencyProperty.Register("Variables", typeof(ObservableCollection), typeof(RunVariableControl), new PropertyMetadata(null)); public event EventHandler selectedSequenceChanged; public event EventHandler SelectedSequenceChanged { add { selectedSequenceChanged += value; } remove { selectedSequenceChanged -= value; } } public ObservableCollection Variables { get => (ObservableCollection)GetValue(VariablesProperty); set { SetValue(VariablesProperty, value); } } public RunVariableControl() { DataContext = this; InitializeComponent(); } } }