示例#1
0
 private void SetKeys(string path)
 {
     foreach (Key elem in keys)
     {
         KeyControl key = new KeyControl(path);
         canvas.Children.Add(key);
         key.SetValue(Canvas.TopProperty, elem.y * 20.0 + 1);
         key.SetValue(Canvas.LeftProperty, elem.x * 10.0 + 1);
     }
 }