protected override void OnPropertyChanged([CallerMemberName] string propertyName = null) { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } // Render if (_dxElement != null) { _dxElement.Render(); } }
private void handleMouseDown(MouseEventArgs param) { _dxElement.Focusable = true; Keyboard.Focus(_dxElement); if (param == null) { throw new InvalidOperationException(GetFunctionName()); } bool isScreenDirty = false; if ((Keyboard.Modifiers & ModifierKeys.Alt) > 0) { _camera.OnMouseDown(param, ref isScreenDirty); } else { SelectedTool.OnMouseDown(param, ref isScreenDirty); } //_tool.OnMouseDown(param); if (isScreenDirty) { // Render _dxElement.Render(); } }