I'm trying to draw a custom Live Tile in my Windows Universal App. Specifically, a circle. I understand that I can provide a bitmap, but I'm not having any luck.
I've tried to follow examples online, but without any luck. Like this: How do I create a WP8 Live Tile with a custom layout?
It uses a WriteableBitmap's .Render() - but when I try to do the same, it seems that .Render() does not exist.
Can someone give me an example of how to create a bitmap that will work in a Universal App that will run on Windows Phone 8 (and ideally the Windows 8 + Windows 10 + Windows Phone 10)?
If I understand you correctly, then RenderTargetBitmap is the new class you are looking for. This is supported by Universal apps and supports the rendering of UI elements.
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.
Is there a way to use default camera app(Nokia/Microsoft camera) in my app?
I would like to, on btn click to call system camera. Take a picture with it, and then upload that picture to the server from my app.
If there is no way to do that, what is the best way to create camera app so user can use zoom, flashlight, etc.
EDIT:
This was available in older versions of Windows phone, and it was simple to use
like this:
CameraCaptureTask camera = new CameraCaptureTask();
camera.Show();
camera.Completed += new EventHandler<PhotoResult>(camera_Completed);
I don't understand why would MS remove this ability from Windows phone 8.1
Thank you,
regards
The camera capture task was based on Silverlight APIs and was valid for Windows phone 7 and 8 that used silverlight Pages . The camera APIs are now based on WinRT Universal APIs . Have a look at this
https://channel9.msdn.com/Series/Building-Apps-for-Windows-Phone-8-1/17
You can do by this link,
capturing an image in windows store 8.1
I am working on a Windows Phone 8 app, and have a question about UI design. Please take a look at the image below:
What I am trying to add to my app is something like the above UI under "recent" tab. That is, some kind of live tile style thing with-in the app.
If anyone has experience about how to build such kind of in-app tiles, please share some idea or code sample.
Thank you
The Windows Phone Toolkit provides a Windows Phone HubTile control:
Here is a tutorial on the Nokia Wiki that explains how to use it.
Use HubTile control from Windows Phone Toolkit library.
There are couple tutorials about that control available, e.g.
http://igrali.com/2011/08/19/how-to-use-the-hubtile-control/,
http://www.developer.nokia.com/Community/Wiki/HubTile_in_Windows_Phone
I have C Static Library for Capturing Video from Camera.It uses Direct X to Interface Camera.
I wanted to create API in .Net C# for Capturing Video and do not want to use DirectX. The Target OS is Windows 8.Api Should be in Such way it should work on Both Desktop and Metro Mode of the Windows 8.
Any Help will be Appreciated.
As per comments above:
DirectX is at the heart of Windows 8 / Metro...
Several sessions on DirectX in Metro were held at BUILD - see http://www.buildwindows.com/Sessions/Tagged/DirectX
Regarding DirectX in Metro see for example http://channel9.msdn.com/Events/BUILD/BUILD2011/PLAT-766T
As the whole API (WinRT etc.) is not final right now it is sure not easy to port your code right now but from what I understand it will possible...
Another point: the Metro API is packaged as WinRT which is COM with several new aspects... this API is usable from .NET + native code (like C/C++)!