Posted 18 Apr 2012 Link to this post
private void widthspin_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e)
{
if (DiaGrid != null && widthspin != null && widthspin.Value.HasValue)
GraphPaper.SetCellSize(DiaGrid, new Size(widthspin.Value.Value, widthspin.Value.Value));
}
private void htspin_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e)
if (DiaGrid != null && htspin != null && htspin.Value.HasValue)
GraphPaper.SetCellSize(DiaGrid, new Size(htspin.Value.Value, htspin.Value.Value));
Posted 19 Apr 2012 Link to this post
The GraphPaper control that is part of the Diagram style has some Attached properties that you can attach to the RadDiagram which describes how it looks. For Example GraphPaper.LineStroke, CellSize, LineThickness and so on... The example code is as follows:
GraphPaper.SetCellSize(diagram,
new
Size(CellWidthSpinner.Value.Value, CellHeightSpinner.Value.Value));
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>