Tag: windev

Can you run a Windows 10 Universal Apps on Windows 8.1 ?

This is one of the frequently asked question by most of the developers who are new to Windows 10 App development. Can you run a Windows 10 Universal Apps on Windows 8.1 ? In simple words , NO. The other way around i.e building Windows Phone 8.1 and Windows 8.1 Universal App will ensure that your app will run fine on both Windows 8.1 and…

Creating Button in XAML in WPF and Windows Store App

Below is a sample Xaml code that is used to create a button in WPF and Windows Store App. <Button xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” Content=”Abundantcode Button”/> The Button can also be created in the code behind of your Xaml page in C# . You would generally see the difference in the namespace based on the UI framework. For example , if you want to create a button in…

How to Pass enum as command parameter in Xaml ?

Below is a sample code snippet demonstrating how to pass enum as command parameter in Xaml. How to Pass enum as command parameter in Xaml ? <Button CommandParameter=”{x:Static local:EmployeeType.ContractEmployee}” /> Tutorials you might find interesting:Azure Q&A – Part 1Quick Tip —CSS Containment Module by @gilfinkSimple-Setup-Vue-Linting-in-VS-Code-by-@q_vaultSenthil-Kumar-B-Posted-by-Senthil-Kumar-B-August-12-2020-CSharp-3-Min-Read-Microsoft-had-released-the-preview-version-of-.NET-5-some-time-back-which-comes-with-C-9-Preview-too.-While-it-is-sti…

How to stretch ListBox Items horizontally to full width of the ListBox in Xaml ?

If you want the list items to horizontally stretch to full width of the ListBox in Xaml , you can set the HorizontalContentAlignment property to the value as shown below. How to stretch ListBox Items horizontally to full width of the ListBox in Xaml ? Below is a sample code snippet demonstrating the usage of the ItemContainerStyle of the Listbox to set the Style. <ListBox…

What is difference between ‘Name’ and ‘x:Name’ in Xaml ?

When working with a control in Xaml (WPF/Silverlight/Windows Phone /Windows Store App) , you will notice that for a control , there are 2 options to specify the name for the control . One using “Name” property and other using “x:Name” property. What is difference between ‘Name’ and ‘x:Name’ in Xaml ? Both the properties refer to the same item . We generally use x:Name…

Visual Assets Tab in Package Manifest file

The Visual Assets tab in the package manifest file lets the developers set the characteristics of the application’s title , splash screen and the images used within the application for various scenario. You will be able to specify the splash screen for your Windows Phone and Windows Store separately because the dimensions are different for phone and the tablet app. The Splash screen for the…

Application Tab in the Package Manifest file in Universal App

The Application tab in the package manifest file in the universal app lets the developers to set some of the application related information like name , description , default language etc. You can even restrict the preferred orientation of your app in this tab by selected one of the below options Landscape Portrait Landscape-flipped Portrait-flipped For a Windows Store App , you could set the…

Different Tabs in the Package Manifest file in Universal App

The package manifest file in the Windows Store App and Windows Phone app (universal app) lets the developers to describe some of the key information about the application like the name , necessary device capabilities that the app can use and the requirements for the device to install the app etc. The name of the file would generally be Package.appxmanifest. Different Tabs in the Package…

How to run the Universal App outside Visual Studio in Windows 10 ?

The Windows Store App built using the Universal App template in Visual Studio 2013 produces the .exe file which is available in the bin folder but when you double click on this exe folder , you will get an error message stating that “This application can only run in the context of an app container.” How to run the Universal App outside Visual Studio in…

How to Change the Start-up Project in Universal App ?

When launching the universal app from Microsoft Visual Studio 2013 , you can decide to run either the Windows Phone 8.1 project or Windows Store 8.1 app . How to Change the Start-up Project in Universal App ? To change the start-up project in Universal App when launching the app locally on Windows 8.1 PC , click the dropdown button that displays “Local Machine” and…