Universal App Windows Phone Orientation - winrt-xaml

Recently I was developing a Universal app for both the Windows Phone and Windows Store. In that app, I was trying to fix the Orientation of the App to Landscape. But in WinRT based apps of Windows Phone 8.1, I failed to find any Orientation option.
In the Silverlight apps, we can fix the Orientations as we want. But is there any way to fix the Orientation to Landscape mode in the Universal Apps?
It will be very helpful if someone help me in this regard. Thanks in advance. :)

Under WinRT you can have a look at DisplayInformation class, where you will find probably all you need.
You can also declare your supported rotations in Package.appxmanifest file in Supported rotations.
Here you can download an example of an App with three Pages, each with different orientation.

Related

Windows UAP Icon Sizes?

I'm doing a major overhaul to my icon generation app, and would like to know the required icon sizes for the Windows Universal App Platform (Windows 10).
Thanks.
Checkout this guidelines for tile and icon assets from Microsoft. There are several things you should consider so read the guideline and you´ll get a better understand of how to proceed.

How is MediaPicker implemented on Windows Universal Platform

Can anyone provide guidance on how to integrate a camera with Windows Universal Platform?
Specifically, I need to see how the MediaPicker service is implemented.
I have searched tirelessly for a working sample of camera integration with Windows Universal Platform (Windows Phone 10).
I have pulled down XLabs and still don't see support for this platform.
I realize Xamarin.Forms only has a preview version of this.

Can I embed a windows store app inside a classic windows application?

I would like to embed a universal windows app into a classic windows application on windows 10. Is this possible?
The short answer is no. However... depending on what you're trying to do, the information below may help you.
If you just want to get the look and feel of a desktop application, you should be aware that Windows 10 apps (unlike Windows 8 apps) run in non-fullscreen mode by default, and can be resized. Desktop apps in Windows 10 have top-right icons (min/max/resize) that look similar to how UWP apps look in the title bar and top-right icons.
If you're creating a UWP app with XAML, you won't be able to embed it in a desktop application. However, if you're building a Windows 10 app using HTML5 and JavaScript, you could repackage it inside a browser control embedded in a desktop application.
If you're creating a game using a 3rd-party tool such as Unity, you can export it as a Windows desktop application just as easily as exporting to a UWP app for Windows 10. Unity can be used for non-game apps as well, so you could export it to a desktop application today, and still have the option of publish a UWP of the same game/app.
If you were thinking of accessing the full Windows SDK from you UWP app, you won't be able to do so, as you will be restricted by the UWP sandbox. But Windows 10 has made many improvements in helping you get access to many advanced features, e.g. accessing certain locations in the file system, so you may be able to get by with all that UWP has to offer.
If you want to avoid the Windows Store, you may sideload your app, as suggested by an earlier comment.
Hope that helps! :)

WinRT XAML Toolkit: can we use it in windows phone 8.1 and windows 8.1 universal app

I am developing a charting app and want to use WinRT XAML Toolkit data visualization in both (Windows Phone 8.1 and Windows 8.1) of the projects in my universal app.
How can I do this?
Unfortuatly WinRT XAML Toolkit (https://winrtxamltoolkit.codeplex.com/) only work for Windows Runtime XAML applications.
My recommendation is that you create 2 pages (sadly) or usercontrols and use winrtxamltoolkit for your windows 8.1 app and another data visualization toolkit like telerik maybe for the windows phone 8.1 (http://www.telerik.com/products/windows-phone/overview/all-controls/chart.aspx).
With a bit of luck you will be able to bind the same property on both controls, best of luck!
Update for anyone finding this ticket, WinRTXamlToolkit is available now for windows phone 8.1 called:
WinRTXamlToolkit.WindowsPhone available via NuGet. I mention this as had almost decided not to use the package and it's solved a chunk of my problems.

ExpanderView port to Windows Store Universal App

As the title indicate, i'm trying to port ExpanderView from windows phone toolkit and use it with windows store universal app ie. WinRT. After re-writing all the necessary classes from Phone:Toolkit into my app, I just founded that the Header of the ExapnderView is neither showing in design mode or in debug mode.
Can't find out what is the problem with this. Is there anyone who tried the same thing and have a solution? I attached the the classes so you can take a look on it, if you can.
Expander RT codeplex
Just found out what the problem was. I missed the style xaml that targets the ExpanderView. If anyone is intresseted in this control for WinRT, both windows 8.1 or windows phone 8.1, please pm me and I will send you the files.
EDIT***
You can find the full Project in codeplex using this link ExpanderRT

Resources