UWP Xaml Page scale after migrating from Win 8.1 - xaml

im currently working on tablet app migration from Win 8.1 to UWP. I created a new blank UWP and added all xaml pages and c# code to it. App is now running without any errors or crashes but i have problems with page layouts. In Win 8.1 every controller was scaled to fit the screen size. Now in Win10 UWP project, if i compare the win 8.1 and UWP app fonts and controllers are almost twice as big as they were on win 8.1 ... Is there something i forgot to do during the migration process ? Thanks

Try to disable DPI scaling
bool result = Windows.UI.ViewManagement.ApplicationViewScaling.TrySetDisableLayoutScaling(true);
Or set to 100% DPI in display properties

Related

Hiding navigation bar causes unexpected extra space in the bottom of the screen

I develop application both with WPF and GTK platforms using Xamarin forms. I decided to hide the default navbar using NavigationPage.HasNavigationBar="False", but after that, I got an extra space at the bottom of the app window. On WPF everything works good, this bug occurs only in GTX platform.
It looks like this navbar became transparent and moved to the bottom.
Here is the link to the picture https://i.stack.imgur.com/JrtlT.png
On Windows app everything works good, this bug occurs only in Linux app.
Not understanding occurs in Linux app .
By the way , if want to hide NavigationBar in forms , as follow will work :
NavigationPage.SetHasNavigationBar(this,false);

iphone5(s) with iOS screen layout become short ,like 3.5 inch UI

I created an app for iphone5(s) with iOS7, but my app screen has become very short. However it shows on the the 3.5 UI(iphone4). I do not know why,please help me.
Set your launch screen. Default is LaunchScreen.xib

LoopSelector for Windows Phone 8.1

I was trying to add LoopingSelector but every time I get this error: The type 'Windows.UI.Xaml.Controls.Primitives.LoopingSelector' has no constructors defined
Is there a way to add the LoopingSelector to a page in XAML?
Use ScrollViewer or FlipView
FlipView internally uses ScrollViewer.
In Windows 8.1 and Windows Phone 8.1 ScrollViewer is very powerfull.
Use VerticalScrollMode and HorizontalScrolMode properties.
See XAML scrolling, panning, and zooming sample

How to snap app programmatically in windows 8?

how can I programmatically set a windows 8 application to snapped view? Also, what happens if the screen resolution is 1024 where snap is not allowed? Will an exception occur when calling this function?
To answer your question - how can I programmatically set a windows 8 application to snapped view?
Seems it is not possible. Please refer following link.
http://social.msdn.microsoft.com/Forums/en-US/winappsuidesign/thread/263b39dd-89d4-4f39-96dc-596a500fa10a

Windows-8 FlipView issue with touch?

I am running Windows 8 Consumer Preview and having an issue with the FlipView control.
In the Windows 8 SDK Sample pack (for Consumer Preview), there is a Controls_FlipView project that shows different things that can be done with the FlipView control. If I run the project in the Simulator and use the touch pointer (hand) and try flipping through the slides, if I flip relatively quickly, the FlipView sometimes ends the animation in between two slides, after letting go of the mouse. This also happens in a FlipView control in my own app.
screenshot: http://i39.tinypic.com/noa3o2.png
Is this a quirk/bug of the simulator? Or does this also happen on a real tablet? (I don't have one to check)