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; namespace Tango.PPC.Jobs.Dialogs { /// /// Interaction logic for VectorFineTuningDialog.xaml /// public partial class VectorFineTuningDialog : UserControl { private VectorFineTuningDialogVM _vm; public VectorFineTuningDialog() { InitializeComponent(); Loaded += (_, __) => { _vm = DataContext as VectorFineTuningDialogVM; }; } private void TouchNavigationLinks_SelectionChanged(object sender, SelectionChangedEventArgs e) { } private void NavigationCSTLinks_PreviewMouseDown(object sender, MouseButtonEventArgs e) { if (_vm != null && _vm.IsOnlyManual) { e.Handled = true; } } private void NavigationCSTLinks_PreviewTouchDown(object sender, TouchEventArgs e) { if (_vm != null && _vm.IsOnlyManual) { e.Handled = true; } } } }