Exemplo n.º 1
0
        public string GetAssociatedString(bool capsLockState, KeyConverter converter)
        {
            KeyboardState state = new KeyboardState();

            state.SetKeyState(Key, true);
            state.SetKeyState(Key.LControl, IsControl);
            state.SetKeyState(Key.LAlt, IsAlt);
            state.SetKeyState(Key.LShift, IsShift);
            state.SetKeyState(Key.Command, IsCommand);

            return(converter.KeyToString((int)Key, state, capsLockState));
        }