protected override void OnViewModelBound() { _showInExplorerButton.BindTo(ViewModel.ShowInExplorerCommand); _openIn3DViewButton.BindTo(ViewModel.OpenIn3DViewCommand); _showInExplorerButton.GetComponentInChildren <TMP_Text>().BindTo(ViewModel.LauncherName, "Show in {0}"); }
protected override void OnViewModelBound() { _text.BindTo(ViewModel.CurrentVersion); _button.BindTo(ViewModel.OpenUpdateDialogCommand); ViewModel.OpenUpdateDialogCommand.CanExecuteChanged += (s, e) => CanExecuteChanged(); CanExecuteChanged(); _button.Clicked += ButtonOnClicked; }
protected override void OnViewModelBound() { _xClockwise.BindTo(ViewModel.RotateCommand, Rotation.XClockwise); _xCounterClockwise.BindTo(ViewModel.RotateCommand, Rotation.XCounterClockwise); _zClockwise.BindTo(ViewModel.RotateCommand, Rotation.ZClockwise); _zCounterClockwise.BindTo(ViewModel.RotateCommand, Rotation.ZCounterClockwise); _yClockwise.BindTo(ViewModel.RotateCommand, Rotation.YClockwise); _yCounterClockwise.BindTo(ViewModel.RotateCommand, Rotation.YCounterClockwise); }
protected override void OnViewModelBound() { _editMenu.BindTo(ViewModel.EditMenuModel); _itemSelector.BindTo(ViewModel.ItemSelectorModel); _viewPort.BindTo(ViewModel.ViewPortModel); _backButton.BindTo(ViewModel.CancelCommand); base.OnViewModelBound(); }
protected override void OnViewModelBound() { _xClockwise.BindTo(ViewModel.RotateCommand, () => new Rotation { Kind = GetKind(), Direction = XClockwise }); _xCounterClockwise.BindTo(ViewModel.RotateCommand, () => new Rotation { Kind = GetKind(), Direction = XCounterClockwise }); _zClockwise.BindTo(ViewModel.RotateCommand, () => new Rotation { Kind = GetKind(), Direction = ZClockwise }); _zCounterClockwise.BindTo(ViewModel.RotateCommand, () => new Rotation { Kind = GetKind(), Direction = ZCounterClockwise }); _yClockwise.BindTo(ViewModel.RotateCommand, () => new Rotation { Kind = GetKind(), Direction = YClockwise }); _yCounterClockwise.BindTo(ViewModel.RotateCommand, () => new Rotation { Kind = GetKind(), Direction = YCounterClockwise }); }
protected override void OnViewModelBound() { _showInExplorerButton.BindTo(ViewModel.ShowInExplorerCommand); _openIn3DViewButton.BindTo(ViewModel.OpenIn3DViewCommand); }