C# Windows 8 Tutorial 1: Calculator 1

preview_player
Показать описание
This series will be on Windows 8 and Windows RT programming using C# and XAML with the new Visual Studio 2012. We will program whole projects from scratch for Microsoft Desktop PCs and tablets like the new Surface.

This is the first of a new style of tutorial for me, I'll be recording my every step and developing whole (though initially quite simple) applications for the Windows store. We'll be making things that run on Desktop PC's as well as the new Microsoft Surface tablets and similar ARM based hardware.

I'm not going into any C# theory (perhaps incidentally) so if you're new to C# I reckon you'll need to read an ebook or two first. I'm going to make projects and narrate as I go. I'll backtrack, make mistakes, break conventions, confuse and embarrass myself and Visual Studio and generate millions of bugs while I'm doing it but that's the reality of programming.

Support What's a Creel? on Patreon:

FaceBook:

Music Channel:

Another channel with random things:
Рекомендации по теме
Комментарии
Автор

That sounds like it. The desktop version of VS 2012 is completely different. Thanks for watching and commenting.

WhatsACreel
Автор

tip: light text on a white background is nice if you are reading important short texts.
dark text on a light background is better for reading a large texts.

NorthcodeNo-no
Автор

I'd attach the handler manually in the CS file. AFAIK XAML is only able to call handlers from the class it belongs.

If there's a XAML/CS class called MP with a button, BTN, and there's another class called OC, with the event handler BTNClicked.

I'd attach the event handler in the MP constructor
BTN.Click += new

Assuming the handler is static. If it's an instance method, you'd need:
BTN.Click += new RoutedEventHandler(MyInstance .BTNClicked);

Great question!

christopherrose
Автор

It's at the MS site, google "windows 8 developer preview" and you should find it.

WhatsACreel
Автор

I am in the tute. It's a virtual machine, the host is 7 but you need 8 to make metro style apps.

WhatsACreel
Автор

This color scheme was the default for me. I've seen others that defaulted to the standard white background, I have no idea why but I much prefer the darker colors.

WhatsACreel
Автор

Thank you for informative tutorial . What is needed to do to activate the buttons by touch rather than a mouse click ?

nissimcohen
Автор

Any more vids planned on this topic? Very informative. 

bizzy
Автор

You can use the "partial" keyword to split classes into different files.

WhatsACreel
Автор

Please kindly Post the link of the third installment of this video series. That is the next video after "C# Windows 8 Tutorial 2- Calculator 2 Operators and Decimal Point". Thank You

dallyadekunle
Автор

I think no, but I'm not 100% sure. I believe the phone will only run programs made with the XAML version of Visual Studio 2012 and the XAML version only installs on Windows 8.

WhatsACreel
Автор

As you might already know, Buttons can have nested content like images plus text, so "Content" and not "Text"; "ContentPresenter" behind I think.

TechLord
Автор

That's strange, what have you got for C#? If you don't mind me asking.

WhatsACreel
Автор

Thank u I want to Know more about vs 2012, This video is really helped me alot.

HadakAllah.

farhanbajrai
Автор

okay I have a windows 7 desktop and a windows 8 phone. Will I still be able to develop apps for my phone on this win7 desktop? let me know please.

derekanderson
Автор

well I got windows 7 and vmware workstation full so where did you get the windows 8 image because I had one but it was in french /:

TVGCproductions
Автор

thank's but i have small problm i get this notification when i try to calculate an operation::
Une exception de type 'System.FormatException' s'est produite dans mscorlib.dll mais n'a pas été gérée dans le code utilisateur

Informations supplémentaires : Input string was not in a correct format.

S'il existe un gestionnaire pour cette exception, le programme peut continuer en toute sécurité.

HediFyodor
Автор

how to split the long .cs file into multiple !

NIRAJKUMAR
Автор

I think the problem may be that I'm not on windows 8

TVGCproductions
Автор

I find the designer to be quite buggy and I hope that is fixed with Windows Blue :|

ReshurumMc