5 avg. rating (100% score) - 1 votes
Looking for jobs in Universal windows platform (UWP)? But don’t know what kind of interview questions will be asked if you are fresher, Experienced candidate. Then we in Wisdomjobs have a solution to all your doubts and questions regarding the Universal Windows platform (UWP) job roles and interview question and answers on our site page. Windows 10 presents the Universal Windows Platform (UWP), which offers a mutual app platform on all device that runs Windows 10. If you are good at all concepts of Universal Windows Platform then there are many leading companies that offers jobs in different roles like .Net Developer, Universal Windows Platform Developer, Software Engineer / software Developer - Universal Windows Platform, Windows APP Developer, Xamarin Developer and many other roles too. For more details on Universal Windows platform interview question and answers visit our site www.wisdomjobs.com.
From Windows Phone 8.1 OS, Microsoft introduces an important change in the Windows Phone developer ecosystem is called universal app concept. In this release, Windows Phone converges with the Windows Store apps platform into a single developer platform that runs the same types of apps i.e Windows Runtime apps. Windows Phone and Windows Store app developer platforms truly have become one, single development platform.
In single world, Universal app is a single development platform for windows phone and windows store apps.
A Windows Store app (former "Metro-style app") is a new type of application that only runs on Windows Tablets. A Windows Store app resembles the apps that are run on smartphones. The user interface is very different compared to traditional desktop apps user interfaces, and without a touchscreen they can sometimes be more difficult to use than a desktop app. The biggest advantage of a Windows Store app is when it's used on a tablet computer or on a laptop computer with touch sensitive screen - then it can use its full potential.
Windows store is the place where you can Install/purchase apps for Windows and windows phone devices.In order to get any Windows/WindowsPhone apps, including free apps from windows store you’ll be prompted to set up a Microsoft account, or use your existing Microsoft email to start using Windows store apps. Once you set up an account, with an email and password, you can start using the Windows app store.
For more info following details are major mobility platform store places:
From windows 10 OS Microsoft introduce a major change in mobility platform is called Universal Windows Platform (UWP). And which is available across all Windows device families(Mobile,Desktop,Xbox,Surface Hub, Holographic, IOT..etc), you can reach all these devices and look great on them all using one store and one code base.
UAP is stands for Universal App Platform and UWP is stands for Universal Windows Platform. Both meant for same thing that will enable Windows 10 developers to write one app for 'All Windows Platform family devices.'
There are so many improvements on Unviersal Windows app development for Windows 10 from Windows 8.1 experience.
Yes, but windows 10 SDK (Which is available with Visual Studio 2015 update 1 or later IDE) works best on the Windows 10 operating system and it is also supported on: Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2, but not all tools are supported on these operating systems.
It is a kind of helper class and provides the necessary properties and methods to load and store the state when the windows phone store app is terminated.
Note: This class is automatically added to the solution if we use the Hub App, Grid App, and Split App project template or add to an existing project a BasicPage or any other Page item template other than BlankPage.
Preferred languages on priority based:
From WinRT windowsphone 8.1 sdk, old windowsphone 8.0 "WMAppManifest.xml" file is renamed to "Package.appxmanifest" which is very similar to the Windows Store apps . Package.appxmanifest is xml file that included all info of our application such as targeted app OS version,App display name,App icons,capability permissions to run app,Start page to be App launch..etc.
With UWP app packages, you cannot simply install an app to your device like Desktop apps. Typically, you download these apps from the Store and that is how they are installed on your device. But you can sideload apps to your device without submitting them to the Store. This lets you install them and test them out using the app package (.appx) that you have created. If you have an app that you don’t want to sell in the Store, like a line-of-business (LOB) app, you can sideload that app so that other users in your company can use it.
Make sure to enable developer mode for windows 10 devices, before .appx deployment. Otherwise you will get below error "Error : DEP0001 : Unexpected Error: To install this application you need either a Windows developer license or a sideloading-enabled system. (Exception from HRESULT: 0x80073CFF)"
Step to enable Developer Mode:
Go into the Settings of a Windows 10 phone device and search for Update & Security category and turn on Developer Mode.
From Windows 10, now no more than one app package and we can use only one binary package that can run across all Microsoft platforms (Mobile,Desktop,Xbox,Surface Hub, Holographic, IOT..etc). So you might want to get the device platform type from your app using c#. And you can use the DeviceFamily property defined in the Windows.System.Profile.AnalyticsInfo.VersionInfo class.
public void GetPlatformType()
var WindowsPlatformFamily = Windows.System.Profile.AnalyticsInfo.VersionInfo.DeviceFamily;
When you compile an application, you usually choose between below two modes:
Debug: Debug mode pads the executable file with extra information used for debugging purpose. After your application is bug-free and feature-complete, there's no longer any need to keep the debug information.
Release: Compiling in Release mode gives you a more compact (and even slightly faster) executable that doesn't include unnecessary internal debugging symbols
Note: Before submitting our windows app to windows store, You need to set target platform as ARM while creating .APPX in release mode because mobile phone have ARM processors so they will need .APPX build on ARM configuration. x86, X64 is for emulators only.
The package manifest is an XML document that contains the info the system needs to deploy, display, or update a Windows app. This info includes package identity, package dependencies, required capabilities, visual elements, and extensibility points. Every app package must include one package manifest.
CollectionViewsSource is XAML markup, it can group all data list objects and bind them to the corresponding controls all in XAML. It has a property called Source that defines the collection of objects or data to bind to the control which is usually set it in code(C#) behind.
In Windows 10, the VisualStateManager class has two new mechanisms with the help of which you can implement a responsive design in your UWP applications. And it is used to define, manage, and transition between different states of controls on a page.
VisualStateGroup: it is having group of Visual States, where each VisualState has a name that is representative of a UI state that can be changed by the user, or changed by control logic. A VisualState consists mainly of a Storyboard.
GoToState: GoToState method is very useful to manage/transition between Visual States. When we call GoToState to change the visual state of a control, VisualStateManager can determined whether a state that matches stateName exists.If exist,corresponding storyboard will begins and If not exist, nothing happens and the method returns false.
StateTriggers is property of VisualState, which can defines a rule in Xaml that specify when a particular VisualState is to be applied. And it allows the developer to check certain conditions like the window height or window width and then the VisualState.Setters property define visual states in response to those certain conditions.
AdaptiveTrigger can help you create a dynamic responsive UI based on the height or width of the device or screen. It has two important properties: MinWindowWidth and MinWindowHeight.
<!--VisualState to be triggered when window width is >=750 and windows height is >=900 effective pixels.-->
<AdaptiveTrigger MinWindowWidth="750" MinWindowHeight="900" />
<Setter Target="myPanel.Orientation" Value="Horizontal" />
<StackPanel x:Name="myPanel" Orientation="Vertical">
<TextBlock Text="text block 1. "/>
<TextBlock Text="text block 2. "/>
<TextBlock Text="text block 3. " />
From above code, StateTriggers property with an AdaptiveTrigger to create a declarative rule in XAML markup based on window size. By default, the StackPanel orientation is Vertical. When the window width is >= 750 and the windows height is >=900 effective pixels, the VisualState change is triggered, and the StackPanel orientation is changed to Horizontal.
Yes we can create our own triggers by creating a custom class inheriting from StateTriggerBase.,Custom triggers helps the developers to change the state of the Visual state of the App based on certain conditions like App size changes and change the controls to fit in to the app’s layout and need to change the controls sizes when the user uses the app in either mouse mode or touch mode and so on.
The RelativePanel eases the process of rearranging elements by defining relationships between elements, which allows you to build more dynamic UI without using nested layouts.
The new SplitView control gives you a way to easily show and hide transient content. It’s commonly used for top-level navigation scenarios like the "hamburger menu", where the navigation content is hidden, and slides in when needed as the result of a user action.
You can use URI (Uniform Resource Identifier) schemes to refer to app files that come from the app's package, data folders, or resources.
general form of URI scheme in WinRT
some of examples:
a. App package: (ms-appx: & ms-appx-web:)
To access files from your application package, you can use either a direct or a logical file path to refer to the resource.
some of examples:
b. App data: (ms-appdata://)
To access files stored in the app data, use the ms-appdata: scheme. App data may be stored in a local folder, a roaming folder, or a temp folder.
some of examples:
<Image Source="ms-appdata:///local/images/logo.png" />
<Image Source="ms-appdata:///roaming/images/logo.png" />
<Image Source="ms-appdata:///temp/images/logo.png" />
c. App Resource: (ms-resource:)
Assuming MyImage.png is content (not embedded resource) in your MyAssembly it would be like this:
WebView control loads the html content from the application’s package using ms-appx-web:// using network http/https. We can load the html in three ways using Source property, using Navigate method and using NavigateToString.
//Load local file using 'Source' property
WebBrowserName.Source = new Uri("ms-appx-web:///HTMLPage.html");
//Load local file using 'Navigate' method
//Load html string using 'NavigateToString' method
WebBrowserName.NavigateToString("<Html><Body><h1>Load local html string in windows phone winrt app.<h1><Body></Html>");
StorageFile ObjStorageFile = await StorageFile.GetFileFromApplicationUriAsync(
await ObjStorageFile.CopyAsync(ApplicationData.Current.LocalFolder, "MyImage.png");
In above code while referencing your application image from asset folder, you must prefix application path with "ms-appx".
Both URI Association and App services are useful for UWP app can interact with another UWP application. But only difference is URI Association used when both the applications are foreground,App services are used in background task and in that case client application must be in foreground and available to use App service.
x:Bind and Binding can does nearly the exact same thing. But having some below few differences:
Note: x:Bind is a new features introduced in Windows 10.
x:Phase is a new features introduced in Windows 10, it provides the ability to prioritize the rendering of XAML controls within a data template. A common scenario for this is when using a long list that has images and text, it would most likely make more sense to load the text first and then the image second. Not only would this make the page look better while scrolling but if a user scrolls quickly enough it could save having to render the images at all and improve the overall speed of the app.
The SemanticZoom control enables the user to zoom between two different views of the same content so that they can quickly navigate through a large data set. The zoomed-in view is the main view of the content. You show the complete data set in this view. The zoomed-out view is a higher-level view of the same content. You typically show the group headers for a grouped data set in this view. For example, when viewing an address book, the user could zoom in on a letter and see the names associated with that letter.
The Model-View-ViewModel pattern can be used on all XAML platforms. Its intent is to provide a clean separation of concerns between the user interface controls and their logic.
As per my knowledge, below are the most popular MVVM Toolkits that can also support for Windows 10 UWP app:
it’s a very popular MVVM (Model-View-ViewModel) framework created by the Patterns & Practices division in Microsoft, with the goal to help developers to implement the MVVM pattern in their application and to support the most common scenarios.
Note: Now prism can support for UWP app from Prism 6 version.
Typically, when you write an application without using the MVVM pattern, to manage the user’s interaction with the user interface (for example, he clicks on a button) you subscribe to a event handler: this way, a new method will be generated in code (C#) behind, which will contain the code that will be execute when the event is raised.
This approach is that it creates a strong connection between the View and the code: event handlers can be managed only in code behind, but you can’t simply move it to a ViewModel. The solution is to use commands, which are special objects (that implement the ICommand interface) that define the operation to perform when the command is executed.
Note: The Windows Runtime offers only the basic interface to support commands, which is ICommand: a developer, typically, would have to create its own class to implement this interface. However, all the MVVM frameworks usually offer it and Prism makes no exception: in this case, the class is called DelegateCommand.
In UWP, Each page has a user interface, made up of three types of UI elements: navigation, commanding, and content elements.
Windows 10 XAML framework provides different ways of layout system to make responsive UI.
Fluid layout: Use layout properties and panels (Canvas, Grid, RelativePanel and StackPanel) to provide different ways to size and position their childrens.
Adaptive layout: can help you create a dynamic responsive UI based on the height or width of the device or screen. Ex: AdaptiveTrigger
Tailored layout: A tailored layout is optimized for a specific device family or range of screen sizes. Within the device family, the layout should still respond and adapt to changes within the range of supported window sizes. For exmple with Continuum for Phones, users can connect their phones to a monitor, mouse, and keyboard. This capability blurs the lines between phone and desktop device families.
In a VariableSizedWrapGrid, elements are arranged in rows or columns that automatically wrap to a new row or column when the MaximumRowsOrColumns value is reached. The Orientation property specifies whether the grid adds its items in rows or columns before wrapping.
If Orientation value is vertical:
Item 1 Item 4 Item 7
Item 2 Item 5 Item 8
Item 3 Item 6 Item 9
If Orientation value is Horizontal:
Item 1 Item 2 Item 3
Item 4 Item 5 Item 6
Item 7 Item 8 Item 9
Auto: Takes as much space as needed by the contained control. And it will make the each row/column size so it can fit whatever is contained in it.
"Star(*)": means stretch row/column size to fill the available space, and is a fraction, so if one row is * and the other row is 2* then the second row will be twice the size of the first row.
So for example, you may have two rows, bottom row has a button and is Auto (only as high as the button) and the top row is "*" - stretches to the remaining space available.
<Button Content="Test" Grid.Row="1" />
Previously in Silverlight windows phone, Thread.Sleep() Method was used to suspends the current thread for the specified amount of time, but it is not available for Windows 10 UWP App framework. So alternative is to use the Task.Delay() method instead.
For example to make app to sleep for 5 seconds, we can write below code in UWP:
Contextual Sensing introduced With Windows 10, now developers can build apps with newly available APIs that can sense user activities such as walking, driving and working out.
There are several APIs available for contextual sensing
Detection APIs: These APIs attempt to detect activity states based on current motion of your customer, such as Walking, Running, In Vehicle, Biking, Stationary, and Idle.
Pedometer API: which counts the user’s steps both when walking and running. As with activity detection, you can access history details for up to 30 days.
Barometer API: it can reports atmospheric pressure.
Proximity API: that can enable a device to wake up or log off based upon the user’s proximity, turn off the display during a phone call, ignore pocket clicks made then the device is in the user’s pocket, and detect gestures.
Altimeter API: that reports relative altitude i.e. changes in elevation.
light sensor is a type of environmental sensor that allow apps to respond to changes in the user's environment.
We can write text to console by using Debug.WriteLine() method which is available System.Diagnostics namespaceew so
System.Diagnostics.Debug.WriteLine ("Your Message Here ");
Note: When you start debugging your application those messages will be displayed in the Output Window.
When we want to work with large set of data, it is not best practices to store all large date in memory at one time and you would be face out of memory issue or which can lead to poor performance.
In this case, you can use data virtualization to get only a subset of the data to work on demand. By default, the ListView and GridView controls support UI virtualization of the elements in the list.
Make sure you keep these two things in mind when using ListView and GridView, which can cause UI virtualization to break:
System.Net.Http.HttpClient: It is available from Windows, Windows phone 8 onwards,we can use this If you are going to develop app with cross platform such as iOS, Android. This API sppports Xamarin IOS and Android development.
Universal Windows Platform (UWP) Related Tutorials
|HTML Tutorial||Java Script Tutorial|
|Microsoft Azure Tutorial||CSS Advanced Tutorial|
|Windows Presentation Foundation(WPF) Tutorial||MVVM Tutorial|
|Windows Communication Foundation (WCF) Tutorial||XAML Tutorial|
|Windows 10 Tutorial|
Universal Windows Platform (UWP) Related Interview Questions
|HTML Interview Questions||Java Script Interview Questions|
|Windows Administration Interview Questions||OOPS Interview Questions|
|Microsoft Azure Interview Questions||CSS Advanced Interview Questions|
|Windows Presentation Foundation(WPF) Interview Questions||MVVM Interview Questions|
|Windows Communication Foundation (WCF) Interview Questions||Unity 3D Interview Questions|
|Advanced C# Interview Questions||Advanced C++ Interview Questions|
|XAML Interview Questions||C and C++ Interview Questions|
|Basic C Interview Questions|
Universal Windows Platform (UWP) Related Practice Tests
|HTML Practice Tests||Java Script Practice Tests|
|Windows Administration Practice Tests||OOPS Practice Tests|
|Microsoft Azure Practice Tests||Windows Presentation Foundation(WPF) Practice Tests|
|Windows Communication Foundation (WCF) Practice Tests|
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.