I'm trying to find way how to programmatically dim screen in the UWP app, but I can't find any related API... is there anything like that?
In newer versions of UWP API this is possible, please see:
UWP > API reference > Windows.Graphics.Display > BrightnessOverride
Windows 10 requirements:
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Update:
This is possible since Windows 10 Creators Update, see https://learn.microsoft.com/en-us/uwp/api/windows.graphics.display.brightnessoverride.
Unfortunately, there is no such API that can control the screen brightness in Universal Windows Platform (UWP). As #Rafael said, the screen brightness is thought to be a global setting controlled by the System Settings. And in some device families such as IoT, the device even may has no monitor.
If you want to dim the screen in your app, you can try to add a dark overlay on top of your view and control its opacity. Also, you are welcome to vote on UserVoice to ask for this feature.
Related
I'm starting to get really confused by the different ways to recognizer text. Some are ancient and some are for Windows Forms or WPF ...
Today, if I only need to traget Windows 10 what Ink technology should I use?
I've been trying to use InkCanvas and all the docs talk about InkPresenter.
However InkPresenter is not a member of InkCanvas ...
InkPresenter
Any ideas please?
InkCanvas is a WPF control and InkPresenter is a UWP control. Which one to use depends on what kind of application you are developing.
These are different kind of applications. A classic WPF desktop application runs on all Windows PCs including Windows 10 machines while Universal Windows Platforms (UWP) apps have the potential of running across all Windows 10 devices including phones, HoloLens and XBox: https://learn.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide.
I would like to create a ScreenCaptureLib.dll which is intended to be built for Universal Windows.
We already have the following using Windows.Forms:
https://github.com/ShareX/ShareX/tree/master/ShareX.ScreenCaptureLib
Obviously none of the Windows Forms code does not work and I would like some pointers in the right direction to get started.
You may follow the official document for Record the screen with ScreenCapture, but please notice that:
The ScreenCapture API is only available on mobile devices.
And for now there is no API can be used directly to capture the screen on a desktop from an UWP app. However, as a workaround method, we can render the XAML tree to a bitmap, to do this, please refer to Capturing Snapshot in Windows 8.1 Store App.
You may also submit a request to add this new feature for developing through the Windows Feedback tool.
Update:
The ScreenCapture feature is only supported for mobile devices running Windows Phone 8.1. This API is not supported on Windows 10.
I am developing a Windows Phone 8/8.1 Apps, I am able to customize the background of the lock screen and etc. But when I saw the app Live LockScreen beta by Microsoft I found its to be very good and inspire me that I can customize my lockscreen similar kind with standard clock customized and much more improve features.
However I don't know what API it's used, I search in internet - no help.
Any idea how can I get some API so that I can customize my lock screen Apps in Windows Phone, No background change API, but other features like Text, Clock etc.
Thanks
I hope you're aware that, there's no such API being published yet which contains those features like in the Live LockScreen Beta as of now.
Can we use WinRT XAML Toolkit to draw customized graphs in Windows Phone 8.1 apps?
I am trying to find out a tool or a authorized set of APIs to draw charts which can be customized during real time by retrieving data from a database.
http://www.telerik.com/…/w…/overview/all-controls/chart.aspx was given as an option but I think u have to pay for it.
I am looking for a free option.
yes you can use the WinRTToolkit, they even have a Nuget package specific for Windows Phone 8.1, more info on their CodePlex
I 'am developing an app targeted to WP7.1 but I want it to work well on WP8 devices too. Assuming creating layout using dynamic resizng elements (grids with auto height etc) will the app scale just like WP8 app under Windows Phone 8 (WP8 handles WVGA HD WXGA resolutions)? If yes, is this possible to get a exact screen size under WP7 and what about in-app images in high resolution? If not, should I build 2 different apps to handle scaling well? One for WP7 and another for WP8 (even if the only change is build target?)
WP7 only supports 800x480 resolution and will automatically scale on WP8.
WP7 app cannot however do any resolution dependant tweaks when app runs on WP8. You need to recompile it to WP8