C# WPF Android like zoom if TextBox gets Focus -


i'm developing wpf application touch devices. want behaviour in android browser, if focus textbox screen 'zooms' in see textbox , virtual keyboard.

i have tried scaling textbox , setting position if has focus doesn't work right. if point me in right direction appreciate that.

you can achieve function code

<textbox background="lightgreen" width="100" height="100" borderbrush="green">             <textbox.style>                 <style targettype="textbox">                     <style.triggers>                         <trigger property="isfocused" value="true">                             <trigger.enteractions>                                 <beginstoryboard>                                     <storyboard>                                         <thicknessanimation duration="0:0:0.400" to="3" storyboard.targetproperty="borderthickness" />                                         <doubleanimation duration="0:0:0.300" to="125" storyboard.targetproperty="height" />                                         <doubleanimation duration="0:0:0.300" to="125" storyboard.targetproperty="width" />                                     </storyboard>                                 </beginstoryboard>                             </trigger.enteractions>                             <trigger.exitactions>                                 <beginstoryboard>                                     <storyboard>                                         <thicknessanimation duration="0:0:0.250" to="0" storyboard.targetproperty="borderthickness" />                                         <doubleanimation duration="0:0:0.150" to="100" storyboard.targetproperty="height" />                                         <doubleanimation duration="0:0:0.150" to="100" storyboard.targetproperty="width" />                                     </storyboard>                                 </beginstoryboard>                             </trigger.exitactions>                         </trigger>                     </style.triggers>                 </style>             </textbox.style>         </textbox> 

Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -