aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Helpers/KeyboardHelper.cs
blob: 202f0378ee73da0838e39cc3c4d5dd2951456b66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Touch.Keyboard;

namespace Tango.PPC.Common.Helpers
{
    public static class KeyboardHelper
    {
        public static void OpenKeyboard(KeyboardActionKeyMode action, TouchKeyboardMode mode = TouchKeyboardMode.AlphaNumeric)
        {
            KeyboardView.Keyboard.ActionKeyMode = action;
            KeyboardView.Keyboard.Mode = mode;
            KeyboardView.Default.IsOpened = true;
        }

        public static void CloseKeyboard()
        {
            KeyboardView.Default.IsOpened = false;
        }
    }
}