Poul Klausen - C# 10: More on WPF
Here you can read online Poul Klausen - C# 10: More on WPF full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2021, publisher: Bookboon.com Ltd., genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:
Romance novel
Science fiction
Adventure
Detective
Science
History
Home and family
Prose
Art
Politics
Computer
Non-fiction
Religion
Business
Children
Humor
Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.
- Book:C# 10: More on WPF
- Author:
- Publisher:Bookboon.com Ltd.
- Genre:
- Year:2021
- Rating:4 / 5
- Favourites:Add to favourites
- Your mark:
- 80
- 1
- 2
- 3
- 4
- 5
C# 10: More on WPF: summary, description and annotation
We offer to read an annotation, description, summary or preface (depends on what the author of the book "C# 10: More on WPF" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.
C# 10: More on WPF — read online for free the complete book (whole text) full work
Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "C# 10: More on WPF" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.
Font size:
Interval:
Bookmark:
1st edition
2021 Poul Klausen & bookboon.com
ISBN 978-87-403-3701-3
This book is the tenth in a series of books on software development. The programming language is C#, and the language and its syntax and semantics fills obviously much, but the books have also largely focus on the process, and how to develop good and robust applications. This book is a continuation of the previous book on WPF. The book deals with issues that one typically encounters in connection with the development of Windows programs. Examples are implementing undo / redo and printing to a physical printer. In addition, as a continuation of the previous book, the book focuses on the development of custom components, but components that are larger and more complex than those shown in the previous book. The book, together with the previous book, is the end of the treatment of WPF, but also of the development of classic PC programs, and the following books will focus on WEB applications and phone apps.
As the title says this series of books deals with software development, and the goal is to teach the reader how to develop applications in C#. It can be learned by reading about the subject and by studying complete sample programs, but most importantly by yourself to do it, and write your own programs from scratch. Therefore, an important part of the books is exercises and problems, where the reader has to write programs that correspond to the substance being treated in the books. All books in the series is built around the same skeleton and will consist of text and examples, exercises and problems that are placed in the text where they naturally belongs. The difference between exercises and problems is that the exercises largely deals with repetitions of the substance that is presented in the text, and furthermore it is relatively accurately described what to do. Problems are in turn more loosely described, and are typically a little bigger and there is rarely any clear best solution. These are books to be read from start to finish, but the many code examples, including exercises and problems plays a central role, and it is important that the reader predict in detail studying the code for the many examples and also solves the exercises and problems or possibly just studying the recommended solutions.
All books ends with a larger sample program, which focus primarily is on the process and an explanation of how the program is written. On the other hand appears the code only to a limited extent, if at all, and the reader should instead study the finished program code, perhaps while testing the program. In addition to show the development of programs that are larger than the examples, which otherwise is presented, the aim of the concluding examples also is to show program examples from varying fields of application.
All sample programs are developed and tested on a Windows machine, and the development tool is Visual Studio. Therefore, you must have Visual Studio installed and Microsoft provides a free version that is fully adequate. Visual Studio is an integrated development environment that provides all the tools needed to develop programs. I do not want to deal with the use of Visual Studio, which is quite straightforward, and it is a program that you quickly become familiar with.
Finally a little about what the books are not. It is not a how to write or for that matter a reference manuals to C#, but it is as the title says books on software development. It is my hope that the reader when reading the books and through the many examples can find inspiration for how to write good programs, but also can be used as a source collection with a number of examples of solutions to concrete everyday programming problems that you regularly face as a software developer.
The book C# 2 is an introduction to writing programs with a graphical user interface using WPF and the previous books has shown many examples of applications with a graphical user interface. This book is a continuation as WPF includes many things that are not included in the previous books, and the book deals with the following topics, which there was no room for in the previous book
- Undo / redo
- Enter text
- A grid control
- A class library
These topics do not directly relate to each other, but are topics that are necessary to know in order to develop GUI programs with a complex user interface, but to some extent the first four topics relate to data entry.
When you write programs where the user constantly has to manipulate data, most users today will demand an undo function where the user can undo an action and preferably several steps back. Which operations the user wants to be able to undo of course depends on the program, and an undo function can therefore not be a feature, which can generally work on all programs, and it is therefore left to the programmer to implement this functionality, and how to do it is the subject for the next chapter in this book.
To enter text in a WPF application is simple as a TextBox is all you need. At least as long as you do not need to enter formatted text as in a real word processor. However, WPF has a component for that purpose, which is called a RichTextBox. On the other hand, it is not quite simple to use, which is the topic of Chapter 3. The chapter ends with user control which acts as a simple editor for formatted text and thus in principle a very simple word processing program.
In the past, being able to print to a physical printer was an important component of almost any program. Even though this is still the case to some extent, being able to print a document does not play the same role as in the past, as we simply do not print as much on paper as before. Still, it is necessary to be able to expand a program with a print function and if you have to print complex data such as text documents or spreadsheet-like documents, it is actually not simple, especially because the result must be adapted to the current margins and page size. All that is the subject of chapter 4.
In many programs there is a need to present data in rows and columns and including also to be able to edit this data. For this purpose, WPF has a DataGrid, which is perfect as long as it concerns data from a data model for e.g. a database table. However, a DataGrid is not perfect in all cases. It is simply not flexible enough. There are several third party components that you can purchase and that provide all the features that you may want, but chapter 5 is an example of how to write your own as a custom component with some of the most important features.
Most commercial applications support Undo / Redo, and in fact, most would expect that to be the case. WPF actually supports undo and redo to some extent, for example in connection with entering text, but if you think a little more about it and on more complex operations in a user program, it is clear that it cannot be a built-in operation in WPF. WPF cannot know what it means to undo an operation and what it is for an operation. At first glance, this may sound like a simple task, but it is not necessarily so and there are several factors to be aware of. In addition, its worth the work to plan a strategy that can be used in several applications.
At a given time, a program has a state, and to implement undo, in connection with an operation that changes the state of the program, one must save the previous state, or at least such a large part of the state for the program that the state can be recreated. You are then able to perform an undo which, for the sake of redo, the saved state also must consists of saving the current state of the program. It is in principle quite simple to implement undo / redo in that way and only requires a stack for undo states and a stack for redo states.
Font size:
Interval:
Bookmark:
Similar books «C# 10: More on WPF»
Look at similar books to C# 10: More on WPF. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.
Discussion, reviews of the book C# 10: More on WPF and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.