public TestDigramViewModel()
{
Nodes = new ObservableCollection<NodeViewModel>();
Connectors = new ObservableCollection<ConnectorViewModel>();
HorizontalRuler = new Ruler();
VerticalRuler = new Ruler() { Orientation = Orientation.Vertical };
SnapSettings snapsettings= new SnapSettings()
{
};
snapsettings.SnapConstraints = SnapConstraints.ShowLines | SnapConstraints.SnapToLines;
snapsettings.SnapToObject = SnapToObject.All;
this.SnapSettings = snapsettings;
} |
this.SnapSettings = new SnapSettings();
this.SnapSettings.SnapConstraints = SnapConstraints.ShowLines | SnapConstraints.SnapToLines;
this.SnapSettings.SnapToObject = SnapToObject.All; |