Textblock doesn't display on Windows Phone 10 - textblock

So I create a new blank universal project, drag in a Textblock, enter "Hello World" as the content and start debug session. But the text doesn't display on the screen. I've tried with both virtual device (simulator) and real phone.
But running as a windows app (on local machine) does shows the text. Also other controls work too, like textbox or an image (on both PC and phone).
Does anyone know what I did wrong? I've just started learning Universal app. Thanks.

Related

How can I upload a file with windows mobile?

All I have is a simple <input type='file'/> and a Windows Phone 8X HTC. In all other devices (iPod, ipad, android), the button is clickable and a file dialog shows up. But when I click it on windows phone - nothing happens. No file dialog at all.
I remember seeing people sending emails with attachments with their windows phones, so I assume that I am doing something wrong.
How can I upload a file on windows phone?
P.S. when I went to people whom I saw sending attachments with their phone, I found that they used native app, not html...
Windows Phone 8 doesn't support this directly from the browser (apparently, it might if you have an expansion card/memory card in the phone, but I don't have one to test with). I can say that the current developer preview of Windows Phone 8.1 does support it. When you click a file upload button in IE11 on WP8.1, a file selector is shown.

Soft keyboard not showing up in my Air application running on Windows 8 (Surface Pro)

I have an Adobe Air app that has some text fields that need input. When I run this app on Windows 8, giving focus to the text fields correctly displays the cursor in the field (and if you use the attached hardware keyboard or a bluetooth keyboard you can type into the fields) however the device's soft keyboard does NOT come up within the app (even though it does come up when I focus into a text field in a regular web form or browser address bar). I'm not sure if this is a bug or if I'm overlooking something that I must manually do in AS3 to provoke the device's soft keyboard to show up when the text field takes focus.
I'm having the same problem for my app for android and ios.
My solution was to use the Textinput component in Flash Pro and export it in my swc file. Works like you'd expect. Softkeyboard shows up in android and ios.

Button to enable multiple display (Windows 8.1)

I'm creating a windows app for windows 8.1 tablet. And I was wondering if it was possible to create a button within the app that will enable me to turn on and off the external display connected to the tablet. Similar to a computer when a projector is connected, a user must press a key in order to show or turn off the display on the projector.
Instead of swiping on the right edge and choosing devices and selecting the multiple display. I want to be able to do this within the app with a press of a single button to enable and disable the multiple display function. Is this possible to do?
Here's an sample from Windows 8.1 SDK that might guide you through the implementation:
http://code.msdn.microsoft.com/windowsapps/Multiple-Views-Sample-2582fcf3

Windows phone 8 Webbrowser links are not clickable

I'm learning windows phone app development. I took yahoo mail site as sample and using it in the web browser control. I want to understand what settings I need to unable in web browser control to look the web page in web browser control as same as how that shows in Internet explorer on Windows phone. Here the screen shots what I see now
In the windows phone browser it looks like below -
Thing I'm missing here in my app is, I cannot see the 'Search mail' text in the search text box in my app.
The most IMPORTANT thing is that when I click the mail item in the app nothing happens. But in Internet explorer it actually opens the mail body.
Please guide me.
That probably caused by some functionality of the web page implemented using javascript. Therefore, try to set IsScriptEnabled property to true :
<WebBrowser IsScriptEnabled="True" .../>
That will enable javascript in the webbrowser control which is disabled by default.

prevent showing app screenshot in application navigation in WP8

for a security critial app I need to prevent the phone making screenshots of the embedded browser control.
On Windows Phone, if you hold the back button pressed, the opened applications are shown with small preview images.
Is there any way to replace that image being used there by an own image. Or is it possible to exclude controls using a xaml syntax from beeing captured?
Thanks Holger
Windows Phone 8 GDR 3 introduced a hidden property on the page object that you can use to prevent screenshots from being taken of that page. Here is more detail