示例#1
0
        void KeyboardService_VisibilityChanged(object sender, SoftwareKeyboardEventArgs e)
        {
            // The OnGlobalLayout method is calledd multiple times, so we have to store the previous state
            // and only do anything if the keyboard visibility is changed
            if (isKeyboardVisible != e.IsVisible)
            {
                isKeyboardVisible = e.IsVisible;

                // Only has to be set when the keyboard becomes visible, because otherwise
                // the MainPage_SizeChanged is invoked earlier, so the canSetLayout is already changed
                if (e.IsVisible)
                {
                    canSetLayout = false;
                }
            }
        }
示例#2
0
        internal void InvokeKeyboardHeightChanged(SoftwareKeyboardEventArgs args)
        {
            var handler = KeyboardHeightChanged;

            handler?.Invoke(this, args);
        }
 private void _keyboardService_Hide(object sender, SoftwareKeyboardEventArgs args)
 {
     Event = "Hide event handler invoked";
 }