Universal Windows Platform (UWP) Interview Questions & Answers

  1. Question 1. What Is Universal App Development?

    Answer :

    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.

  2. Question 2. What Is Windows Store App?

    Answer :

    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.

  3. HTML Interview Questions

  4. Question 3. What Is Windows App Store?

    Answer :

    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:

    • Windows Phone/Windows: Windows Store
    • Android: Google Play
    • IOS/iPhone: Apple store
  5. Question 4. Silverlight Windows Phone Vs Winrt Windows Phone?

    Answer :

    • Windows Phone 7, Windows Phone 8 & Windows Phone 8.1 (Targeting Silverlight) uses Silverlight API’s. And how Windows Phone 8 & Windows Phone 8.1 relate to Silverlight, well they use the Silverlight API’s that are available for mobile application framework.
    • Windows 8 & Windows 8.1 both target WinRT API’s. And Windows Phone 8.1 also support WinRT API’s. So, if you want to create Windows 8.1 & Windows Phone 8.1 applications that you can do by creating a Universal application targeting both the platforms (They have convergence of 90%).
  6. HTML Tutorial

  7. Question 5. What Is Uwp?

    Answer :

    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.

  8. Java Script Interview Questions

  9. Question 6. What Is Uap & Uwp, Is There Any Difference?

    Answer :

    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.’

  10. Question 7. What Are The Major Development Differences Between Winrt Universal App & Windows 10 Uwp?

    Answer :

    There are so many improvements on Unviersal Windows app development for Windows 10 from Windows 8.1 experience.

    • Previously in windows 8.1 universal app project, we need to create two different app packages (.APPX) for windows phone & Windows, but now no more than one app package and we can use only one app package that can run across all Microsoft platforms (Mobile,Desktop,Xbox,Surface Hub, Holographic, IOT..etc)
    • Now no need to create two separate projects for windows phone and windows, with windows 10 sdk now build one Universal Windows app that runs on all Windows 10 devices.
    • We no longer need a developer license with Windows 10. But we must Enable Developer Mode to your device for development.
  11. Java Script Tutorial
    Windows Administration Interview Questions

  12. Question 8. Can Windows 10 Sdk Work With Below Os Versions Like Windows 8.1/windows 8.0/windows 7..etc?

    Answer :

    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.

  13. Question 9. What Is Suspension Manager In Windows Phone 8.1?

    Answer :

    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.

  14. OOPS Interview Questions

  15. Question 10. What Are The Programming Languages For Windows App Development?

    Answer :

    Preferred  languages on priority based:

    • C# & Xaml (Native or Xamarin cross platform)
    • Visual Basic
    • Visual C++/CX(CX is the component extensions to the C++ language)
    • HTML5 , JavaScript and CSS (Using Cordova, phonegap..etc)
  16. Microsoft Azure Tutorial

  17. Question 11. What Is Package.appxmanifest File In Winrt Windows Phone 8.1?

    Answer :

    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.

  18. Microsoft Azure Interview Questions

  19. Question 12. What Are The Different Architecture Configurations For Creating Packages In Windows 10 Uwp App?

    Answer :

    • x86(32 bit processors, emulator )
    • x64(64 bit processors, emulator)
    • ARM ( It is for RT device)
    • Neutral(all architectures.)
  20. HTML Interview Questions

  21. Question 13. What Is Side Load Of App Package?

    Answer :

    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.

  22. CSS Advanced Tutorial

  23. Question 14. What Is Maximum Size Of .appx File?

    Answer :

    • .appxbundle: 25 GB maximum per bundle
    • .appx packages targeting Windows 8.1: 8 GB maximum per package
    • .appx packages targeting Windows 8: 2 GB maximum per package
    • .appx packages targeting Windows Phone 8.1: 4 GB maximum per package
    • .xap packages: 1 GB maximum per package (in silverlight windows phone).
  24. Question 15. What Are Prerequisites To Deploy .appx File?

    Answer :

    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.

  25. CSS Advanced Interview Questions

  26. Question 16. How To Get The Device Platform On Windows 10 Uwp App?

    Answer :

    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;


  27. Windows Presentation Foundation(WPF) Tutorial

  28. Question 17. What Are The Different Application Running Modes In Windows App Development?

    Answer :

    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.

  29. Windows Presentation Foundation(WPF) Interview Questions

  30. Question 18. What Is App Package Manifest In Uwp?

    Answer :

    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.

  31. Java Script Interview Questions

  32. Question 19. What Is The Difference Between Gridview And Listview In Windows App Development?

    Answer :

    • The ListView and GridView controls are so similar, you can think of them as a single control. The major difference between the two is the manner in which they lay out their items, and it’s easy to change the layout so each control emulates the other.
    • The ListView control displays its data stacked vertically, much like a standard list box. Use this control to display an ordered list of data, like a list of email messages, a list of contacts, or search results.
    • The GridView control displays its data stacked horizontally in rows (although you can alter this behavior and have it displayed in columns first, as well). You use this control when you need more space for rich visualization of each item to be displayed.
    • The item container for a ListView is ListViewItem and the item container for a GridView is GridViewItem. But we can customize item container by setting the ItemContainerStyle property.
  33. MVVM Tutorial

  34. Question 20. What Is Collectionviewsource In Windows App?

    Answer :

    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.

  35. MVVM Interview Questions

  36. Question 21. What Is Visualstatemanager In Windows 10 Uwp?

    Answer :

    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.

  37. Question 22. What Does State Triggers In Windows 10 Uwp?

    Answer :

    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.

  38. Windows Communication Foundation (WCF) Tutorial

  39. Question 23. What Does Adaptive Trigger In Windows 10 Uwp?

    Answer :

    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.






















    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.

  40. Windows Communication Foundation (WCF) Interview Questions

  41. Question 24. Can It Possible To Make Custom Triggers In Uwp?

    Answer :

    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.

  42. Windows Administration Interview Questions

  43. Question 25. What Is Relative Panel In Windows 10 Uwp?

    Answer :

    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.

  44. XAML Tutorial

  45. Question 26. What Is Split View Control In Windows 10 Uwp?

    Answer :

    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.

  46. Unity 3D Interview Questions

  47. Question 27. What Does Uri Schemes?

    Answer :

    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:

    //Local folder  


      //Roaming folder  


      //Temp folder  


    c. App Resource: (ms-resource:)

    Assuming MyImage.png is content (not embedded resource) in your MyAssembly it would be like this:


  48. OOPS Interview Questions

  49. Question 28. How To Load Local Html Files Using Web View Control In Windows 10 Uwp App.

    Answer :

    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  

     WebBrowserName.Navigate(new Uri(“ms-appx-web:///HTMLPage.html”));  

     //Load html string using ‘NavigateToString’ method  


    Load local html string in windows phone winrt app.


  50. Windows 10 Tutorial

  51. Question 29. How To Copy Image From Assets Folder To Local Storage In Windows 10 ?

    Answer :

    StorageFile ObjStorageFile = await StorageFile.GetFileFromApplicationUriAsync(

           new Uri(“ms-appx:///Assets/MyImage.png”));

    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”.

  52. Advanced C# Interview Questions

  53. Question 30. What Is The Major Difference Between Uri Association And App Services In Windows 10 Uwp?

    Answer :

    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.

  54. Question 31. What Is The Difference Between {x:bind} And {binding} In Uwp?

    Answer :

    x:Bind and Binding can does nearly the exact same thing. But having some below few differences:

    • x:Bind lacks some of the features of {Binding}, but it runs in less time and less memory than {Binding} and supports better debugging.
    • x:Bind defaults to Mode=OneTime whereas Binding will default to Mode=OneWay
    • x:Bind does not use the DataContext as a default source, Binding assumes, by default, that you’re binding to the DataContext of your markup page.
    • {x:Bind} executes special-purpose code, which it generates at compile-time, Where {Binding} used reflection at runtime to handle binding. 

    Note: x:Bind is a new features introduced in Windows 10.

  55. Question 32. What Is X:phase In Windows 10 Uwp?

    Answer :

    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.

  56. Advanced C++ Interview Questions

  57. Question 33. What Does Semantic Zoom Control In Windows 10 Uwp?

    Answer :

    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.

  58. Microsoft Azure Interview Questions

  59. Question 34. Why We Need To Use Model-view-viewmodel(mvvm) Pattern?

    Answer :

    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.


    • During the development process, developers and designers can work more independently and concurrently on their components. The designers can concentrate on the view, and if they are using Expression Blend, they can easily generate sample data to work with, while the developers can work on the view model and model components.
    • The developers can create unit tests for the view model and the model without using the view. The unit tests for the view model can exercise exactly the same functionality as used by the view.
    • It is easy to redesign the UI of the application without touching the code because the view is implemented entirely in XAML. A new version of the view should work with the existing view model.
    • If there is an existing implementation of the model that encapsulates existing business logic, it may be difficult or risky to change. In this scenario, the view model acts as an adapter for the model classes and enables you to avoid making any major changes to the model code.
  60. Question 35. What Are The Mvvm Toolkits And Frameworks Available In Windows 10 Uwp?

    Answer :

    As per my knowledge, below are the most popular MVVM Toolkits that can also support for Windows 10 UWP app:

    • Prism 6
    • MVVM Light
    • Caliburn Micro
  61. Question 36. What Is Prism In Windows App Development?

    Answer :

    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.

  62. CSS Advanced Interview Questions

  63. Question 37. What Is Use Of Icommand In Uwp?

    Answer :

    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.

  64. Question 38. What Are Different Type Of Ui Elements In Uwp?

    Answer :

    In UWP, Each page has a user interface, made up of three types of UI elements: navigation, commanding, and content elements.

    • Navigation elements help users choose the content they want to display. Examples of navigation elements include tabs and pivots, hyperlinks, and nave panes.
    • Command elements initiate actions, such as manipulating, saving, or sharing content. Examples of command elements include button and the command bar. Command elements can also include keyboard shortcuts that aren’t actually visible on the screen.
    • Content elements display the app’s content. For a painting app, the content might be a drawing; for a news app, the content might be a news article.
  65. Question 39. What Are Different Type Of Layouts In Uwp?

    Answer :

    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.

  66. Question 40. What Is Variablesizedwrapgrid In Uwp?

    Answer :

    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

  67. Windows Presentation Foundation(WPF) Interview Questions

  68. Question 41. What Is Difference Between “auto” And “*” In Windows 10 Uwp Grid Layout Definitions?

    Answer :

    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.






  69. Question 42. How To Make Sleep For Specific Time In Uwp App Development?

    Answer :

    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: 

    await Task.Delay(TimeSpan.FromSeconds(5));

  70. MVVM Interview Questions

  71. Question 43. What Is Contextual Sensing In Windows 10?

    Answer :

    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.

  72. Question 44. What Is Light Sensor In Windows 10 Universal App?

    Answer :

    light sensor is a type of environmental sensor that allow apps to respond to changes in the user’s environment.

  73. Question 45. How To Display Text On Console In Uwp On Windows 10?

    Answer :

    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.

  74. Question 46. What Is Data Virtualization In Windows 10 Uwp?

    Answer :

    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.

  75. Question 47. When Can Ui Virtualization Behavior Breaks In Windows 10 Uwp?

    Answer :

    Make sure you keep these two things in mind when using ListView and GridView, which can cause UI virtualization to break:

    • Don’t place ListView/GridView inside of a ScollViewer control. Becuase by default ScrollViewer’s child elements completely expand to take as much space as they need. It can breaks the UI virtualization behavior, as all items will be realized.
    • If you provide a custom ItemsPanel Template to change layout behavior of ListView/GridView then make sure you use a virtualizing panel such as ItemsWrapGrid and ItemsStackPanel. If you use VariableSizedWrapGrid, WrapGrid, or StackPanel, then you will not get virtualization.
  76. Question 48. What Is The Difference Between System.net.http.httpclient And Windows.web.http.httpclient In Windows 10 Uwp?

    Answer :

    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. 

    Windows.Web.Http.HttpClient: It was first introduced in Windows 8.1 and was available on Windows Phone 8.1 as well. So primary focus it can support all windows store languages(C#, VB, C++, JavaScript) into a single one that supports all the features from each of those APIs. We can use this If you are going to develop native UI or pass specific SSL certificates for Authentication.