.NET Fireside Chats - Chris Anderson on 'Essential Windows Presentation Foundation'
Join the DZone community and get the full member experience.Join For Free
dzone recently had a chance to sit down with chris anderson, author of ' essential windows presentation foundation '. in this interview, chris discusses the origins of wpf and xaml, the benefits of microsoft expression blend, and the future of wpf.
dzone has also made available chapter 3 from chris' book, which can be downloaded here .
dzone - tell us a little about what you do at microsoft?
chris anderson - i work at microsoft in the connected systems division as a engineer. my primary area of responsibility is for parts of the new “oslo” modeling platform that was announced at pdc 2008. my day job consists mostly of writing code, documentation, tests, and meeting with people. we run our team using agile methodologies where everyone performs all roles (dev, test, pm, etc.).
dzone - what was your role at the time you wrote this book?
chris - at the time i wrote the book i was working on the wpf team (then called avalon) as an architect.
dzone - what is wpf? give us the nickel tour.
chris - wpf (and its sister technology silverlight) is a comprehensive presentation technology that attempts to provided a consistent model for ui, text, graphics, media, and animation. in addition wpf provides a base application model for client applications which includes browser and desktop based applications.
dzone - what are the origins of wpf and xaml?
chris - wpf started out as an effort to provide a consistent presentation platform that spanned ui, documents, and media. we brought together experts from internet explorer, windows, ebooks, and developer tools to try and build a platform that could span the scenarios.
xaml came about from this effort as we tried to figure out a model for writing down declarative definitions of wpf, something that worked for the breadth of the platform. xaml has become a general way to write declarative programs, extending beyond wpf now.
dzone - do you see wpf someday completely replacing winforms in .net?
chris - windows forms (aka winforms) provides managed code access to the win32 presentation technologies from user32 and gdi. winforms is an extremely productive way to build desktop applications for windows, with a great visual designer and rich control library. as long as user32 and gdi are available in windows, i would imagine that winforms will remain a viable option for programming client applications. i believe that over time more applications will target wpf and silverlight, however “completely replacing” seems like a stretch.
dzone - do you think wpf browser-based applications have a future, or will silverlight completely take over that space?
chris - i believe that in general a hardware accelerated native platform will always have a place in a developer’s toolbox. while many applications can run in a virtual environment (like silverlight or flash) there are scenarios for taking a tighter dependency on the operating system and hardware of the client. that said, based on what i have seen from silverlight 1.0 and silverlight 2.0 it seems that silverlight and wpf are becoming closer.
dzone - explain the difference between what can be done in expression blend vs. visual studio when creating a wpf application.
chris - in my opinion, expression blend puts “drawing” as the center of the universe, while the visual studio wpf editor puts “controls” as the center. as these products mature, i expect to see the capabilities of both tools to be on par, but i believe this different approach will flavor the two products.
in my own wpf development i tend to use both products. commonly i do my coding and initial ui sketch up in visual studio, and then do ux polish using blend. i also use blend or expression design to create my images and icons. the shared project system is a huge help for integration.
dzone - who should buy your book?
chris - people who want to understand the zen of wpf. my book is not a comprehensive reference, but rather a tour through the key elements of wpf and some coverage around the thoughts of how we think about the platform.
dzone - do you have any future books in the works?
chris - no future books in the works.
Opinions expressed by DZone contributors are their own.
Security Challenges for Microservice Applications in Multi-Cloud Environments
Five Java Books Beginners and Professionals Should Read
Testing Applications With JPA Buddy and Testcontainers
Top 10 Pillars of Zero Trust Networks