예제 #1
0
 public void UpdateKeyWidth(KeyWidth newWidth)
 {
     ThisKeyWidth = newWidth;
     foreach (Octave octave in OctavePanel.Children)
     {
         octave.UpdateKeyWidth(newWidth);
     }
 }
예제 #2
0
        public void UpdateKeyWidth(KeyWidth newWidth)
        {
            foreach (WhiteKey wKey in WhiteKeys.Children)
            {
                wKey.mKeyWidth = newWidth;
            }

            foreach (BlackKey bKey in BlackKeys.Children)
            {
                bKey.mKeyWidth = newWidth;
            }
        }
예제 #3
0
        private void BtnKeyWidth_Click(object sender, RoutedEventArgs e)
        {
            if (currentWidth == KeyWidth.Narrow)
            {
                currentWidth = KeyWidth.Normal;
            }
            else if (currentWidth == KeyWidth.Normal)
            {
                currentWidth = KeyWidth.Touch;
            }
            else if (currentWidth == KeyWidth.Touch)
            {
                currentWidth = KeyWidth.Narrow;
            }

            KB.UpdateKeyWidth(currentWidth);
            ScrollKeyboard();
        }