using System.Windows.Controls; using TeamAAS_VP.ViewModels.Calibration; using TeamAAS_VP.ViewModels.Product; namespace TeamAAS_VP.Views.Calibration { /// /// Interaction logic for CalibrationCameraParams /// public partial class CalibrationCameraParams : UserControl { CalibrationCameraParamsViewModel VM; public CalibrationCameraParams() { InitializeComponent(); VM = DataContext as CalibrationCameraParamsViewModel; VM.PropertyChanged += VM_PropertyChanged; this.display.VerticalScrollBar=false; this.display.HorizontalScrollBar=false; } private void VM_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.PropertyName=="Robot") { this.robotManual.Robot = VM.Robot; } else if (e.PropertyName == "Image") { this.display.Image = VM.Image; } } } }