コード例 #1
0
        protected override void OnViewModelBound()
        {
            _showInExplorerButton.BindTo(ViewModel.ShowInExplorerCommand);
            _openIn3DViewButton.BindTo(ViewModel.OpenIn3DViewCommand);

            _showInExplorerButton.GetComponentInChildren <TMP_Text>().BindTo(ViewModel.LauncherName, "Show in {0}");
        }
コード例 #2
0
 protected override void OnViewModelBound()
 {
     _text.BindTo(ViewModel.CurrentVersion);
     _button.BindTo(ViewModel.OpenUpdateDialogCommand);
     ViewModel.OpenUpdateDialogCommand.CanExecuteChanged += (s, e) => CanExecuteChanged();
     CanExecuteChanged();
     _button.Clicked += ButtonOnClicked;
 }
コード例 #3
0
 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);
 }
コード例 #4
0
        protected override void OnViewModelBound()
        {
            _editMenu.BindTo(ViewModel.EditMenuModel);
            _itemSelector.BindTo(ViewModel.ItemSelectorModel);
            _viewPort.BindTo(ViewModel.ViewPortModel);

            _backButton.BindTo(ViewModel.CancelCommand);

            base.OnViewModelBound();
        }
コード例 #5
0
 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
     });
 }
コード例 #6
0
ファイル: ViewPanel.cs プロジェクト: honzikkpcm/StlVault
 protected override void OnViewModelBound()
 {
     _showInExplorerButton.BindTo(ViewModel.ShowInExplorerCommand);
     _openIn3DViewButton.BindTo(ViewModel.OpenIn3DViewCommand);
 }