INDICE
INTRODUZIONE
1.1 Che cos’è Windows Presentation Foundation . . . . . . . 7
1.2 Novità . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
1.3 Scopo del libro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
1.4 Requisiti . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
XAML
2.1 Introduzione a XAML . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2 Sintassi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3 Markup Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.4 Content Property . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
NUOVI CONCETTI
3.1 Dependency Property . . . . . . . . . . . . . . . . . . . . . . . . .17
3.2 Attacched Properties . . . . . . . . . . . . . . . . . . . . . . . . . .23
3.3 Routed Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.4 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
3.5 Application Model . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
SVILUPPARE APPLICAZIONI CON WPF
4.1 Panoramica sui controlli . . . . . . . . . . . . . . . . . . . . . . . 41
4.1.1 Content Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
4.1.2 Items Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
4.2 Gestione delle dimensioni, posizioni e trasformazioni . 56
4.2.1 Posizionamento . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
4.2.2 Trasformazioni . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60
4.3 Gestione del Layout . . . . . . . . . . . . . . . . . . . . . . . . . . 66
4.3.1 Stackpanel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67
INTRODUZIONE