Saturday, 15 March 2014

c# - How can I stop my image from resizing when the soft keyboard appears? -



c# - How can I stop my image from resizing when the soft keyboard appears? -

i'm writing windows 8 game have image source direct3d interop acts gameboard. when soft keyboard appears on screen, have next code prevent standard behaviour of view beingness pushed accommodate keyboard (it's desired gameboard stays in place when keyboard appears):

private void keyboardshowing(inputpane sender, inputpanevisibilityeventargs args) { double offsetheight = args.occludedrect.height; containergrid.margin = new thickness(0, offsetheight, 0, 0); }

the code above working other non-gameboard parts of page. however, scheme automatically resizing image fit in visible portion of screen. how can stop happening?

c# windows xaml windows-8 windows-store-apps

No comments:

Post a Comment