Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying GUI Programming with C#
  • Table Of Contents Toc
GUI Programming with C#

GUI Programming with C#

By : Marcelo Guerra Hahn
3 (1)
close
close
GUI Programming with C#

GUI Programming with C#

3 (1)
By: Marcelo Guerra Hahn

Overview of this book

Developing graphical user interfaces in C# can feel overwhelming with so many frameworks and tools to choose from. This book simplifies the journey by teaching GUI fundamentals through small, structured, and practical examples. You start with core GUI concepts, event driven programming, and basic interface design. Then you build simple web apps using Blazor and WebAssembly, learning about components, rendering, and data binding. Next, you explore cross platform development with .NET MAUI, working with XAML, layouts, controls, and basic app logic. Finally, you create Windows desktop applications with WinUI 3, using common controls and foundational patterns such as MVVM and data binding. Rather than focusing on complex enterprise architecture, the book builds your skills step by step. Each chapter reinforces key ideas through clear examples designed to build confidence and practical understanding. Written by Marcelo, a developer with over 18 years of experience in C#, C++, Azure, and data driven systems, this book helps you gain clarity in GUI development. By the end, you will be able to create simple, well structured web and desktop interfaces in C# and understand the core concepts behind them.
Table of Contents (13 chapters)
close
close
11
Other Books You May Enjoy
12
Index

GridView

The GridView control in WinUI 3 provides a powerful way to display data in a grid layout with multiple columns, offering logical content divisions. This makes it especially useful for presenting structured data such as product catalogs, image galleries, or course listings. In this example, we will implement a Favorite Course Selector app, displaying a grid of favorite courses and allowing the user to select one. Each course will be visually represented as an individual item within the grid.

The first element in our layout is a TextBlock that displays the Favorite Course Selector title. This title is formatted to be visually prominent, with a font size of 32, bold weight, and the color blue (#182980). The HorizontalAlignment="Center" property ensures that the title is centered horizontally in the application window. A margin is added below the title to provide some spacing between the title and the following content.

Next, we define the GridView, which will...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
GUI Programming with C#
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon