Hi I am Using VS2012 for Win8 for WinRT app development. I had tried the InputScope for textbox.
When I run the app in Emulator, there is no PopUp Number like Wp to select when textbox is clicked. Did I miss anything?
<TextBox TextWrapping="NoWrap" FontSize="38" Text="" InputScope="Number" Height="60" Width="103" Margin="100,10,0,10" />
Thanks
To test InputScope property of textbox with on-screen keyboard, the app needs to be open in simulator with touch mode selected.
Related
This is my problem.
I need to bring focus to a UItextbox with out the keyboard popping up.
There is a requirement to use a Bluetooth device and when the focus is placed on the UItextbox the keyboard is not needed.
I tried the BecomeFirstResponder() method which does bring focus but the keypad also opens.
Firstly, set the InputView for your TextField to empty using:
myTextField.InputView = UIView.New; //Or new UIView();
Then set the TextField active by using BecomeFirstResponder()
Reference
I import an EnyoJS project for WebOS platform into Tizen Studio, then I ran it in a Samsung TV and there is this little problem:
When I click on a text field the virtual keyboard shows up in the TV screen, then if I click on a letter the keyboard goes down.. The letter does appear in the text field but I have to press on it again to make the keyboard shows up and press on the next letter. So I have to repeat this over and over just to write a whole word
How to fix this?
UPDATE 1:
It seems like it only happens with the Input kind component. I have some other panels with TextArea component and the keyboard works fine.
In android studio, when run, my program is displayed in landscape mode and works perfectly well. However, when viewing the xml design, the virtual device is displayed in portrait mode. How do I display the xml in landscape mode?
Short Cut
Ctrl+F11 Switch layout orientation portrait/landscape backwards [AVD]
The screenOrientation is the attribute of activity element. The
orientation of android activity can be portrait, landscape, sensor,
unspecified etc. You need to define it in the AndroidManifest.xml
file.
You can add
android:screenOrientation="landscape"
Your screen will always display in Landscape mode, when you rotate
your device, no changes will apply for the current activity.
Like
<activity
android:name=".ActivityName"
android:label="#string/app_name"
android:screenOrientation="landscape" />
Please check official Guideline:
https://developer.android.com/guide/topics/manifest/activity-element.html#screen
Click that button next to "Nexus 5".
I have a WPf popup inside Usercontrol which I open & closed by binding IsOpen property. Problem which I am facing is that popup doesn't close even if I open a new screen from menu using hotkey and its showing on top of new screen. I tried to set StaysOpen="False" but its not working.
Popup IsOpen="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsPopupOpen, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
HorizontalAlignment="Center" VerticalAlignment="Center" PopupAnimation="Fade" HorizontalOffset="30" StaysOpen="False">
Thanks,
I am using Windows Performance suite (which part of Microsoft Windows SDK) to profile my sample application. I am using the "Perforator" with an option "Show dirty-region update overlay", which enables me to see when and where areas are redrawn in an application.
When I hover mouse over a TextBox control then I see that it is redrawn multiple times and the CPU utilization goes up. I tested with a very simple window with just a TextBox control and a button control.
Is this normal for WPF to redraw control on mouse hover?
Is there anything that I can do to minimize this?
Here is the windows that I am using
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid>
<StackPanel Orientation="Horizontal">
<TextBox Height="25" Width="150" >
</TextBox>
<Button Margin="10,0,0,0" Height="25">1211</Button>
</StackPanel>
</Grid>
Its not "normal" for WPF to redraw the control on mouse over, because WPF only updates the region that has changed (using retained mode graphics):
One of the biggest benefits in using retained mode graphics is that
WPF can efficiently optimize what needs to be redrawn in the
application. Even if you have a complex scene with varying levels of
opacity, you generally do not need to write special-purpose code to
optimize redrawing (see Intelligent Redrawing in the Retained Mode Graphics section).
The problem in this case is that the active Windows theme is applied to the controls. When you move the mouse over the button, you'll see that the button slightly changes to a "light blue-transparent" color (though this depends upon your active Windows theme). At the same time, once you focus the button, another "animative" type of behavior is applied to the button. You can clearly see this with the dirty-region checked.
If you want to change this, you need to define your own theme, overriding the default-theme-behavior. Here's a post to get you started.