Button to enable multiple display (Windows 8.1) - windows-store-apps

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

Related

Textblock doesn't display on Windows Phone 10

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.

Is it possible to use Camera in Background or Hidden Mode in Windows Phone 8?

There are many ways we can access Camera in Windows Phone 8 / 8.1. Most of them launch specific UI for that.
Is there any way we can access camera without displaying anything related to camera in Windows Phone 8/8.1 ?
I want my camera to capture an image when my application opens.

Windows Phone Tiles Page

I am new to windows phone development and i will like to create a page with buttons similar to the windows phone main page.
Something like this http://cdn.marketplaceimages.windowsphone.com/v8/images/b60e325c-ac45-4d7d-bdf9-f83762c23c90?imageType=ws_screenshot_large&rotation=0
Can you please suggest how I can achieve this?
You can either use the Windows Phone Toolkit (free) or Telerik Rad Controls (not free)
Both of them have a "Hub Tile" Component that allows you to create "Live Tiles" like those inside your app.

Windows Phone 8 navigation

I just started developing wp8 apps coming from android. What is the equivalent UI control for an app drawer (android) to be able to quickly change from page to page? I'm looking for the control used to change from page to page in OneNote
EDIT: I found out that Windows phone 8.1 offers flyouts which can be made to look like an app drawer.
The equivalent to the android app drawer is probably the windows phone appbar, but the appbar in windows phone is not used for navigation - only settings like actions.
In windows phone, navigation is done primarily through your own interface, with heavy use of the BACK button to go to previous pages. The main class you use in windows phone is the NavigationService
I don't believe the OneNote uses standard UI components, so you would probably have to create your own
There are plenty of solid resources online that should help. Start here:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff626521(v=vs.105).aspx

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