Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open a Blank App (XAML) in Visual Studio 2015 and later? - C#

I'm trying to study from C# Head First and it seems like the blank app (XAML) option only exists in visual studio express 2012 (I tried today's express as well as community with no luck finding that option), I tried few of the options that seemed to be similar but none provides the files requested by the guide.

*sorry for the bad English/grammer, English is not my native language.

like image 662
Tomer8009 Avatar asked Sep 24 '15 17:09

Tomer8009


People also ask

How do I open MainWindow xaml in Visual Studio?

Once the app is generated, Visual Studio should open the XAML designer pane for the default window, MainWindow. If the designer isn't visible, double-click on the MainWindow. xaml file in the Solution Explorer pane to open the designer.

How do I start xaml?

To begin editing your first XAML file, use Visual Studio or Visual Studio for Mac to create a new Xamarin. Forms solution. (Select the tab below corresponding to your environment.) In the Configure your new project window, set the Project name to XamlSamples (or whatever your prefer), and click the Create button.

What is xaml CS in C#?

xaml. cs is the code-behind page for MainPage. xaml. It's where you add your app logic and event handlers. Together these two files define a new class called MainPage , which inherits from Page, in the HelloWorld namespace.

Which element is used in xaml to embed the C# code in xaml file?

Embedded code requires using the x:Code element and a CDATA section within the x:Code element.


2 Answers

'Blank project' is the American way of saying an empty project. I am using Visual Studio 2019 -->Create a new project-->WPF App (.NET Core) screenshot of the WPF App option

like image 73
Set S Avatar answered Oct 01 '22 04:10

Set S


The book uses the 2013 version, which has support for XAML with the blank app feature. On later versions, the closest you come is WPF, which is pretty close even providing you with XAML. But dont worry, the book realizes that and links to here(http://cdn.oreilly.com/oreilly/pdfs/hfcsharp3e_WPF_download.pdf). The WPF versions of the tasks in the book. Hope that helps

like image 41
Gutema T Jordan Avatar answered Oct 01 '22 05:10

Gutema T Jordan