I want to show Components in a tabs , so first of all create few components. In this project we have three components, First View Component public class AllViewComponent : ViewComponent { private readonly UserManager<ApplicationUser> _userManager; public AllViewComponent(UserManager<ApplicationUser> userManager) { _userManager = userManager; } public async Task<IViewComponentResult> InvokeAsync() { List<StudentViewModel> allUsers = new List<StudentViewModel>(); var items = await _userManager.Users.ToListAsync(); foreach (var item in items) { allUsers.Add(new StudentViewModel {Id=item.Id, EnrollmentNo = item.EnrollmentNo, FatherName = item.FatherName, Name = item.Name, Age = item.Age, Birthdate = item.Birthdate, Address = item.Address, Gender = item.Gender, Email = item.Email }); }
Introduction
In our previous article, we have studied about Windows Store Grid App. In this article we will learn about App.xaml file and their behaviors also take a simple example to change Application name.Pre-requisite
- You need windows 8 SDK
- You need developer license
General Structure of App.xaml file
<Application
x:Class="FirstGridApplication.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:FirstGridApplication"
xmlns:localData="using:FirstGridApplication.Data">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<!--
Styles that define common
aspects of the platform look and feel
Required by Visual Studio
project and item templates
-->
<ResourceDictionary Source="Common/StandardStyles.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!--
Application-specific resources -->
<x:String x:Key="AppName">FirstGridApplication</x:String>
</ResourceDictionary>
</Application.Resources>
</Application>
If you want to change Application name in Grid App then you should go for App.xaml file and change in markup as specified in below XAML code
<x:String x:Key="AppName">FirstGridApplication</x:String>
First Output Page
<x:String x:Key="AppName">My Application</x:String>
Comments
Post a Comment