.NET and .NET Core 8. WPF Hierarchy Pan Wuming 2017.

Slides:



Advertisements
Similar presentations
Windows Presentation Foundation Fabio Santini
Advertisements

Module 1: Creating an Application by Using Windows Presentation Foundation Overview of WPF Creating a Simple WPF Application Handling Events and Commands.
Expression Blend 4 – deep dive
A component- and message-based architectural style for GUI software
Dependency in action A look at how dependency is used in modern programming languages Antony Harfield 22 nd October 2009.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
An Introduction To Silverlight Gergely Orosz
Overview of the.NET Framework. What is the.NET Framework A new computing platform designed to simplify application development A consistent object-oriented.
WPF. Origins – Who, When, Where  Who? Microsoft  When? November 2006  Where? Windows Vista Windows Server 2003 Windows XP Service Pack 2.
BACS 287 Basics of Object-Oriented Programming 1.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Introduction to .Net Framework
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
WPF, Windows Presentation Foundation A platform for building rich user experiences on Windows An Architect overview By Shahzad sarwar.
CHAPTER ONE Problem Solving and the Object- Oriented Paradigm.
© 2006 IBM Corporation IBM WebSphere Portlet Factory Architecture.
WPF, Windows Presentation Foundation A platform for building rich user experiences on Windows An Architect overview By Shahzad sarwar.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
Module 4 Taking Control of the User Interface. Module Overview Sharing Logical Resources in an Application Creating Consistent User Interfaces by Using.
WPF Fundamentals. Class Hierarchy Object DispatcherObject DependencyObject FreezableVisual UIElement FrameworkElement Control Visual3D UIElement3D ContentElement.
Understanding Desktop Applications Lesson 5. Understanding Windows Forms Applications Windows Forms applications are smart client applications consisting.
Model View ViewModel Architecture. MVVM Architecture components.
Copyright ©2004 Virtusa Corporation | CONFIDENTIAL Windows Presentation Foundation Ruwan Wijesinghe.
12-Jun-16 Event loops. 2 Programming in prehistoric times Earliest programs were all “batch” processing There was no interaction with the user Input Output.
Part of the Microsoft.NET Framework 3.0 Tomer Shamam.NET Technologies Expert Sela Group
Intro to JavaServer Faces Mimi Opkins CECS 493 Fall 2016.
Integrating Data Lesson 6.
Dive Into® Visual Basic 2010 Express
Introduction to Silverlight
DotNetSpider Editor Hefin Dsouza
Leading edge windows development
Working in the Forms Developer Environment
The Movement To Objects
Important New Concepts In WPF
.NET Framework 2.0 .NET Framework 3.0 .NET Framework 3.5
Introduction to Visual Basic 2008 Programming
Chapter 5:Design Patterns
Event loops 16-Jun-18.
Cross Platform Development using Software Matrix
OO Methodology OO Architecture.
Introduction to Silverlight
Jim Fawcett CSE775 – Distributed Objects Spring 2011
XAML User Interface Creation in C#
1.1. .NET architectural components and .NET Core
CS360 Windows Programming
.NET and .NET Core 5.2 Type Operations Pan Wuming 2016.
An Introduction to Entity Framework
.NET and .NET Core 7. XAML Pan Wuming 2017.
GEOMATIKA UNIVERSITY COLLEGE CHAPTER 2 OPERATING SYSTEM PRINCIPLES
Windows Presentation Foundation
Web Development Using ASP .NET
Event loops.
1.2 Key Concepts and Walkthroughs
C++ programming in Windows environment
JavaServer Faces: The Fundamentals
An Introduction to Software Architecture
Event loops 17-Jan-19.
Event loops 17-Jan-19.
Web Development Using ASP .NET
HCI Project.
Event loops 8-Apr-19.
5. 3 Coding with Denotations
Event loops.
Windows Presentation Foundation
DOT NET ARCHITECTURE (OR) DOT NET FRAME WORK ARCHITECTURE
Event loops.
Windows Forms in Visual Studio 2005: An in-depth look at key features
Event loops 19-Aug-19.
Brown Bag Seminar Summer 2007
Presentation transcript:

.NET and .NET Core 8. WPF Hierarchy Pan Wuming 2017

WPF Class Hierarchy

Unmanaged component The milcore is an unmanaged component This is to enable tight integration with DirectX

DispatcherObject WPF is based on a messaging system implemented by the dispatcher The dispatcher is a basic message dispatching system, with multiple prioritized queues. Examples of messages include raw input notifications (mouse moved), framework functions (layout), or user commands (execute this method). WPF’s threading model was kept in sync with the model of single threaded execution with thread affinity (STA). DispatcherObject is simply an object that’s linked to a dispatcher—in other words, an object that’s bound to the dispatcher’s thread.

DependencyObject WPF elements are built on the principle of composition and component reuse. System driven by properties: The property system is truly a "dependency" property system in that it tracks dependencies between property expressions and automatically revalidates property values when dependencies change. Two way binding and change notification Property expression: free of hard code Sparse storage of property values Attached properties: Additional data on child elements

In WPF, properties are typically exposed as common language runtime (CLR) properties. At a basic level, you could interact with these properties directly and never know that they are implemented as a dependency property.

Visual Visual is the point of connection between the managed API and the unmanaged milcore The entire tree of visuals and drawing instructions is cached WPF allows each component to paint over the previous component's display.

UIElement Core subsystems: Layout, Input, and Events. Two phase layout model: Measure and Arrange. Events routing: previewing input events tunnel and bubbling input events CommandBindings

Example: Mouse Events

FrameworkElement Data binding Styles A lightweight form of data binding Bind a set of properties from a shared definition to one or more instances of an element

Control Templating Data model (properties) Interaction model (commands and events) Display model (templates)