コード例 #1
0
        public KeyboardPage()
        {
            InitializeComponent();

            // Each scrollable area should be large enough to demonstrate scrolling
            double listHeight = Window.Current.Bounds.Height * 2;
            LeftList.Height = listHeight;
            MiddleList.Height = listHeight;

            // InputPaneHelper is a custom class that allows keyboard event listeners to
            // be attached to individual elements
            inputPaneHelper = new InputPaneHelper();
            inputPaneHelper.SubscribeToKeyboard(true);
            inputPaneHelper.AddShowingHandler(CustomHandlingBox, new InputPaneShowingHandler(CustomKeyboardHandler));
            inputPaneHelper.SetHidingHandler(new InputPaneHidingHandler(InputPaneHiding));
        }
コード例 #2
0
ファイル: KeyboardPage.xaml.cs プロジェクト: ckc/WinApp
        public KeyboardPage()
        {
            InitializeComponent();

            // Each scrollable area should be large enough to demonstrate scrolling
            double listHeight = Window.Current.Bounds.Height * 2;

            LeftList.Height   = listHeight;
            MiddleList.Height = listHeight;

            // InputPaneHelper is a custom class that allows keyboard event listeners to
            // be attached to individual elements
            inputPaneHelper = new InputPaneHelper();
            inputPaneHelper.SubscribeToKeyboard(true);
            inputPaneHelper.AddShowingHandler(CustomHandlingBox, new InputPaneShowingHandler(CustomKeyboardHandler));
            inputPaneHelper.SetHidingHandler(new InputPaneHidingHandler(InputPaneHiding));
        }