background preloader

C#

Facebook Twitter

Part 5: Create a blog reader (Windows Store apps using C#/VB and XAML) We introduce the essential code and concepts you need to create a Windows Store app using C# or Visual Basic. You'll use Extensible Application Markup Language (XAML) to define the UI, and your selected language to write the app logic. Important This tutorial is intended for use with Microsoft Visual Studio 2012 and Windows 8. Parts of it will not work correctly with Microsoft Visual Studio 2013 and Windows 8.1. If you'd rather use another programming language, see: Roadmap: How does this topic relate to others? See: Roadmap for Windows Store apps using C# or Visual Basic. Before you start... This is the last tutorial in a series. Objectives In this tutorial, we take a quick tour of the features that you'll use to build Windows Store apps.

Hello World When you create your Windows Store app using C# or Visual Basic, you typically define the UI using XAML, and write your app logic in an associated code behind file in your selected language. A "Hello, world" app is good place to start. Part 4: File access and pickers. Important This tutorial is intended for use with Microsoft Visual Studio 2013 and Windows 8.1.

Parts of it will not work correctly with Microsoft Visual Studio 2012 and Windows 8. In Part 2 of this tutorial series, Manage app lifecycle and state, you learned about app data and session data, and how to save this data in ApplicationData storage. Your app can access certain file system locations, like app data locations, the app install directory, and items it creates in the Downloads folder, by default.

In contrast, user data, such as pictures, videos, and document files, is independent of your app and is typically stored in other locations in the file system, such as the user’s library folders. To access these locations, your app needs to declare capabilities to access the data programmatically, or use a file picker to let the user open the file manually. In this tutorial, you add functionality to the photo page layout you created in Part 3: Navigation, layout, and views.

Part 3: Navigation, layout, and views. The UI design for your Windows Store app is about organizing and presenting content to your users, and providing commands that enable your users to act on the content. UI design includes the organization of pages in the app, the navigation between pages, and the layout of content and commands on each page. There are various navigation patterns that can be used in a Windows Store app.

Navigation patterns will help you choose the best navigation pattern for your app. Note See the two primary navigation patterns (Flat navigation and Hierarchical navigation) in action as part of our App features, start to finish series. Important This tutorial is intended for use with Microsoft Visual Studio 2013 and Windows 8.1. In this tutorial, you learn how to: Add pages and navigationArrange controls and content on a pageAdapt the page layout to different orientations and views Before you start... This is the third tutorial in a series. Step 1: Add pages and navigation Add the photo viewer page Add navigation.

Part 2: Manage app lifecycle and state (Windows Store apps using C#/VB and XAML) In Windows 8, you can launch a bunch of apps and switch between them without having to worry about slowing down the system or running the battery down. That's because the system automatically suspends (and sometimes terminates) apps that are running in the background for you. A well-designed app can be suspended, terminated, and relaunched by the system and seem as though it were running the entire time. Important This tutorial is intended for use with Microsoft Visual Studio 2013 and Windows 8.1. Parts of it will not work correctly with Microsoft Visual Studio 2012 and Windows 8. In this tutorial, you learn how to: Save state using different types of storageRestore your app's state the next time the app is launched Before you start...

This is the second tutorial in a series. About the app's lifecycle Before you go back to the code, let's talk a bit about the app's lifecycle. An app can be suspended when the user switches away from it or when Windows enters a low power state. Part 1: Create a "Hello, world" app (Windows Store apps using C#/VB and XAML) This tutorial teaches you how to create a simple "Hello, world" Windows Store app using Extensible Application Markup Language (XAML) with Microsoft Visual Basic or C#.

It's the first tutorial in a series that teach you what you need to know to build Windows Store apps. Important This tutorial is intended for use with Microsoft Visual Studio 2013 and Windows 8.1. Parts of it will not work correctly with Microsoft Visual Studio 2012 and Windows 8. In this tutorial, you learn how to: Create a new projectAdd XAML content to your start pageHandle touch, pen, and mouse inputSwitch between the light and dark themesCreate your own custom styles We show you how to create a Windows Store app using XAML with Visual Basic or C#. Before you start... To complete this tutorial, you need Windows 8.1 and Visual Studio 2013. Step 1: Create a new project in Visual Studio Launch Visual Studio 2013.

Although the Blank App is a minimal template, it still contains a lot of files: Replace the MainPage App.xaml. Roadmap for Windows Store apps using C# or Visual Basic. Here are key resources to help you get started developing Windows Store apps using C# or Visual Basic. This is not a comprehensive list of all the features or available resources. The fundamentals are listed first, and it's a good idea to start there. But this topic is also designed so that you can skip around and learn about features you're interested in. Bookmark this page and come back to it again when you need to learn how to add another feature to your app. If you'd rather use another programming language, see: Get started Hands-on labs for Windows 8 If you’d like more tutorials to help you get started making Windows Store apps, download the hands-on labs for Windows 8. Download the hands-on labs for Windows 8 Basic features and concepts for all Windows Store apps The programming model for Windows Store apps using C++, C#, or Visual Basic Rich visuals and media Working with data Sensors Searching, sharing, and connecting Guidelines and best practices API reference Related topics.