introdução ao wpf
TRANSCRIPT
![Page 1: Introdução ao WPF](https://reader037.vdocuments.com.br/reader037/viewer/2022100416/55978e9f1a28abb8368b466d/html5/thumbnails/1.jpg)
INTRODUÇÃO AO WPF
Leonardo Lourenço SilvaMCT, MCPD, MCSD, MCTS, MTA, MCP
![Page 2: Introdução ao WPF](https://reader037.vdocuments.com.br/reader037/viewer/2022100416/55978e9f1a28abb8368b466d/html5/thumbnails/2.jpg)
WINDOWS PRESENTATION FOUNDATION
Incluído na plataforma .NET 3.0 = WPF 1.0 … WPF 4.5 Incluído na plataforma .NET 3.0 = WPF 1.0 … WPF 4.511
Tecnologia para desenvolvimento de aplicações RICAS Tecnologia para desenvolvimento de aplicações RICAS 22
Suporte avançado para trabalhar com áudio, video,
imagens(2D e 3D) e animações
Suporte avançado para trabalhar com áudio, video,
imagens(2D e 3D) e animações33
Alternativa a tecnologia Windows Forms Alternativa a tecnologia Windows Forms44
VOCÊ JÁ ESTÁ FAMILIARIZADO COM O PODER DO WPF !!!
Tecnologia híbrida, suporte a aplicações (Windows e Web) Tecnologia híbrida, suporte a aplicações (Windows e Web)55
UI é construída em XAML UI é construída em XAML66
![Page 3: Introdução ao WPF](https://reader037.vdocuments.com.br/reader037/viewer/2022100416/55978e9f1a28abb8368b466d/html5/thumbnails/3.jpg)
WPF NO DIA A DIA
![Page 4: Introdução ao WPF](https://reader037.vdocuments.com.br/reader037/viewer/2022100416/55978e9f1a28abb8368b466d/html5/thumbnails/4.jpg)
LINGUAGEM XAML (zammel)
Linguagem de marcação da Microsoft (Derivada do XAML) Linguagem de marcação da Microsoft (Derivada do XAML)11
Controles são representados em forma de elementos XAML Controles são representados em forma de elementos XAML 22
Cenários avançados temos que colocar a mão no XAML Cenários avançados temos que colocar a mão no XAML33
Telas são divididas em 2 arquivos (XAML, CODE BEHIND) Telas são divididas em 2 arquivos (XAML, CODE BEHIND)44
eXtensible Application Markup Language
![Page 5: Introdução ao WPF](https://reader037.vdocuments.com.br/reader037/viewer/2022100416/55978e9f1a28abb8368b466d/html5/thumbnails/5.jpg)
EXEMPLO DE CÓDIGO XAML
<Window>
<Label>Label</Label><TextBox>TextBox</TextBox><RichTextBox ... />
<RadioButton>RadioButton</RadioButton><CheckBox>CheckBox</CheckBox><Button>Button</Button>
</Window>
<Window>
<Label>Label</Label><TextBox>TextBox</TextBox><RichTextBox ... />
<RadioButton>RadioButton</RadioButton><CheckBox>CheckBox</CheckBox><Button>Button</Button>
</Window>
![Page 6: Introdução ao WPF](https://reader037.vdocuments.com.br/reader037/viewer/2022100416/55978e9f1a28abb8368b466d/html5/thumbnails/6.jpg)
TIPOS DE APLICAÇÕES WPF
O XBAP VEIO PARA SUBSTITUIR O ACTIVEX
![Page 7: Introdução ao WPF](https://reader037.vdocuments.com.br/reader037/viewer/2022100416/55978e9f1a28abb8368b466d/html5/thumbnails/7.jpg)
EXEMPLO DE CLASSES NO WPF
<Window xmlns:x=… x:Class="Samsung.Window1"> <Grid> … </Grid>
</Window>
<Window xmlns:x=… x:Class="Samsung.Window1"> <Grid> … </Grid>
</Window>
<Page xmlns:x=… x:Class="Samsung.Page1">
<Grid> … </Grid>
</Page>
<Page xmlns:x=… x:Class="Samsung.Page1">
<Grid> … </Grid>
</Page>
COMPATIBILIDADE ENTRE OS 2 MUNDOS (WINDOWS, WEB)
![Page 8: Introdução ao WPF](https://reader037.vdocuments.com.br/reader037/viewer/2022100416/55978e9f1a28abb8368b466d/html5/thumbnails/8.jpg)
SOFTWARES PARA DESENVOLVIMENTO WPF
COMPATIBILIDADE ENTRE OS SOFTWARES
DESIGNERSDESIGNERS
DESENVOLVEDORESDESENVOLVEDORES Foco no BACKEND
Foco no FRONTEND
![Page 9: Introdução ao WPF](https://reader037.vdocuments.com.br/reader037/viewer/2022100416/55978e9f1a28abb8368b466d/html5/thumbnails/9.jpg)
![Page 10: Introdução ao WPF](https://reader037.vdocuments.com.br/reader037/viewer/2022100416/55978e9f1a28abb8368b466d/html5/thumbnails/10.jpg)