You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$10
For Premium members:
In this article you will learn about Split View Control in Adaptive Triggers in Universal Windows Program. This is Part 3 of the series.
Before reading this article, I highly recommend reading the previous part of the series:
In universal windows program one of the best feature is Adaptive UI, once you set the UI controls screen position, based on the screen resolution automatically controls get adjusted.All the screen resolution handle in the XAML file itself, no need to write any extra coding in the code behind page.The following are the four classes handling the screen resolution,
Where:
AdaptiveTriggerIn this trigger internally handle the OnSize changed event (no need implement onsize change event in code behind file), AdaptiveTigger invoked when the MinWidth or MinHeight greater than the assigned size.Example:Let us see how to handle the AdaptiveTrigger in the splitview control.As we have seen Part 1, SplitView displaymode compactinline mode good for big screen & compactoverline mode good for small screen, We change this displaymode based on the screen resolution using AdaptiveTrigger.
Application width is greather than 720, Adaptive trigger, event to visual state and visual state assign the UI changes to control via setter property.Application run in the Windows Desktop greater than 720, Application run in the Windows Desktop less than 720Same application running in the Windows 10 mobile,
Step into Windows 10 UWP