示例#1
0
        protected override void OnViewModelBound()
        {
            _selectButton.BindTo(ViewModel.SelectCommand);
            _deleteButton.BindTo(ViewModel.DeleteCommand);

            ViewModel.State.OnMainThread().ValueChanged += UpdateStateIcon;
            UpdateStateIcon(ViewModel.State);

            _text.BindTo(ViewModel.Path);
            ViewModel.Path.ValueChanged += OnPathOnValueChanged;

            void OnPathOnValueChanged(string s)
            {
                _stopTrimming       = false;
                _lastTrimmingResult = null;
            }
        }