Question 1: Setting the maximumScale
I tried to set the maximum zoom level but in the constructor but the panel object is null. Any Suggestions on where this can be set?
myDiagram.Panel.MaximumScale = 4.0
Question 2: Setting custom zoom factor.
Is this the correct way to extend the zoom factor? I wanted +/- 10%.
public override void IncreaseZoom(object param)
Diagram diagram = this.Diagram;
if (diagram != null)
DiagramPanel panel = diagram.Panel;
if (panel != null)
panel.Scale += zoomFactor;
Question 3: Extending CommandHandler
Will there be support to plug-in custom commands into the CommandHandler? On which event in the Diagram should I update commands?
I have added custom command like so.
// Inside CommandHandler
public void UpdateCanExecute()
if (_leftAlignCommand != null)
public ICommand AlignLeftCommand
if (_leftAlignCommand == null)
_leftAlignCommand = new RelayCommand(LeftAlign);