using System.Windows.Controls; using TeamAAS_VP.ViewModels.Calibration; namespace TeamAAS_VP.Views.Calibration { /// /// Interaction logic for FixedUpCameraFindP0 /// public partial class FixedUpCameraFindP0 : UserControl { FixedUpCameraFindP0ViewModel VM; public FixedUpCameraFindP0() { InitializeComponent(); VM = DataContext as FixedUpCameraFindP0ViewModel; VM.PropertyChanged += VM_PropertyChanged; ((FixedUpCameraFindP0ViewModel)DataContext).ToolBlockEdit = this.ToolBlockEditV2; } private void VM_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.PropertyName == "Robot") { this.robotManual.Robot = VM.Robot; } } } }