How to design UWP app UI? - windows

I am working on a UWP app and I am new to windows 10 development. I want to create an app which will work on windows pc, mobile and tablets. In visual studio when I try to design UI for different screen sizes, UI changes happen in every other screen sizes. For example, if I made some changes in 8' screen UI then 5' mobile UI totally messes up. Can anyone suggest something?

What you are trying to do is a "Responsive UI design" which will automatically manipulate their properties when the screensize were triggered by the devices height or width, most of the time is the device's Width.
Here is the official guide on how to do the responsive design.

Related

Outlook font size for add in

I need help with the text size for my outlook add in.
I have a table view in my add in which is unreadable with bigger screen resolutions. Is there a way to zoom so the font size gets bigger?
With a selected email from my inbox it is possible to zoom with the zoom slider in the bottom right corner. Is there a way to activate the zoom slider at any time? Or is there any way to access and change/set the font size outside of the email body?
It looks like your add-in is not DPI-aware. Desktop applications using older Windows programming technologies (raw Win32 programming, Windows Forms, Windows Presentation Framework (WPF), etc.) are unable to automatically handle DPI scaling without additional developer work. Without such work, applications will appear blurry or incorrectly-sized in many common usage scenarios. To make things working better you must read the following articles:
High DPI Desktop Application Development on Windows
Writing DPI-Aware Desktop and Win32 Applications
Most probably the table view is used on a windows form, see Automatic scaling in Windows Forms for more information.

Xamarin.Forms UWP Application doesn't work on XBOX as native

I have tried my UWP app on XBOX one which is built using xamarin.forms and it works generally fine but by default mouse mode is active. I changed it using
RequiresPointerMode = Windows.UI.Xaml.ApplicationRequiresPointerMode.WhenRequested;
on UWP level in app.xaml.cs and it disabled mouse pointer but problem is that using game pad, i am not able to select items on the UI. I can navigate through textbox and buttons but not Toolbar (Commandbar in uwp), ListView, Masterdetail, Tabs etc.
I created a blank native UWP application and added a commandbar with AppBarButtons and NavigationView with NavigationViewItems. It perfectly works, I am able to navigate between menu items and commanbaritems using mouse pad.
Why this is not working for Xamarin.Forms? is xamarin.forms not actually native for UWP?
Xamarin.Forms MasterDetailPage was written before NavigationView existed and it doesn't use it at all (and especially not with NavigationViewItems, that would limit the flexibility, i don't think it will ever be used).
As SplitView has some focus bug that I can confirm it doesn't come as a surprise that it doesn't work with XBox as expected. However UWP doesn't grant that the app will work properly when you disable the mouse mode with native controls, that's why it is enabled by default. There are properties like XYFocusLeft that must be set if the app is not working properly. You probably need to make custom renderer to expose those properties and set them right. That's pretty much of work to do but it is up to you to decide...

Is it possible that WP7.x APP can use full space on 16:9 (720P)device

I have application Using WP7.x SDK. I am not using any Window Phone 8 feature.
My App's XAML Pages are fitting perfectly on WVGA and WXGA but on 720P on top of screen there is some blank space. How can i fix this problem (I don't want to create seprate build for Window Phone 8).Please advise.
Unfortunately, this is not possible. The WP7 apps running on WP8 devices are constrained in a 480x800 container.
To take advantage of the 720p screen, you'll have to build a WP8 version of your app.
At least graphically this is possible. You can handle WP7 XNA inputs and graphics right: look my awnswer here: https://stackoverflow.com/a/23457119/766304
Second thing that you have to do is render your Silverlight / XAML UI with XNA. More information about that from here: http://msdn.microsoft.com/en-us/library/hh221583.aspx
All of that is tested and works well but this will manipulate only rendering and not XAML input side, input fixing could be possible or not. Still difrense between those two aspect ratios is so small that result can be good enought.

Change the phone editor resolution?

How can I change the resolution of the phone representing the code when in xaml view in a project?
The phone serves as a drag and drop for the controls, does it have a setting somewhere to set it's resolution. Windows Phone 8 currently have three resolutions; 800x480, 1280x720 and 1280x768.
I'm aware the emulator can be started up with different resolution, but my situation is that my CPU does not support this, im debugging straight on my Lumia 920 (1280x768).
I've got no clue on how the application looks like in 800x480.
But it is a simple application, a preview would be good enough.
You need to open the Device Window: Design -> Device Window
There under the display section you can select the display size (3 available).
Additionally you can test any other resolution by disabling the 'Chrome' option in the device window and setting d:DesignHeight and d:DesignWidth of your page to the desired resolution.
I had the problem and after much time searching google and stackoverflow, I don't think that it is possible to change the resolution of the designer window. However, maybe this link can help you, it helped me back a while ago when I had that problem:
WP8 Emulator screen size
It refers to the emulator, but explains how the app UI will be scaled to match different device resolutions. Hope it helps!

Metro style,how to make my screen compatible for landscape and portrait mode?

I am new to metro style app.I designed a normal page in visual studio 2012 ultimate in landscape mode using only drag and drop tools.I run this page using Emulator.It runs well in landscape mode.but In Portrait mode,the contents of the page is not fitted automatically.Even it is not allowed to scroll the screen to see all the contents in the page.
I want a design fits for all screen resolution and different orientation. what should i do?
If any tutorial available please provide the link.
Are you talking about Windows Phone or WinRT?
Either way, you need to handle the orientation change yourself.
If you're doing WinRT, start here:
Optimizing for both landscape and portrait
and if you're doing Windows Phone, start here:
How to: Handle Orientation Changes on Windows Phone

Resources