using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using Tango.MachineStudio.Logging.ViewModels; namespace Tango.MachineStudio.Logging.Views { /// /// Interaction logic for TimelineView.xaml /// public partial class TimelineView : UserControl { private TimelineViewVM _vm; public TimelineView() { InitializeComponent(); this.Loaded += (_, __) => _vm = DataContext as TimelineViewVM; } private void UserControl_MouseWheel(object sender, MouseWheelEventArgs e) { if (e.Delta > 0) { _vm.TimelineScaleFactor += 0.5; } else { _vm.TimelineScaleFactor -= 0.5; } } } }