Presentation is loading. Please wait.

Presentation is loading. Please wait.

C# kursus Rohde & Schwarz1 Moderne GUI Windows Presentation Foundation.

Similar presentations


Presentation on theme: "C# kursus Rohde & Schwarz1 Moderne GUI Windows Presentation Foundation."— Presentation transcript:

1 C# kursus Rohde & Schwarz1 Moderne GUI Windows Presentation Foundation

2 WPF Overview Traditional GDI (25 years), GDI+, WinForms DirectX (16 years), Direct3D Quartz, DirectShow (14 years) Problems Showing their age Each API is different Mixing APIs is challenging 2

3 WPF Overview Compositing UI, Documents, Media, 3D, Browser, … Declarative programming with XAML markup For Designers and Developers Rewritten from scratch Built on top of Direct3D Hardware accelerated Vector based Resolution independent Retained graphics 3

4 WPF Vision Integrated, vector-based composition engine Utilizing the power of the PC throughout the graphics stack Unified approach to UI, Documents, and Media Integration as part of development and experience Declarative programming Bringing designers directly into application development Ease of deployment Allowing administrators to deploy and manage applications securely 4

5 XAML XML for Applications Markup Language 5 Click Me! Click Me! Button button1 = new Button(); button1.Content = "Click Me!"; Button button1 = new Button(); button1.Content = "Click Me!";

6 XAML: Properties As attributes or elements 6 <Button Content="Click Me!" Background="LightGreen" /> <Button Content="Click Me!" Background="LightGreen" /> LightGreen Click Me! LightGreen Click Me!

7 XAML: Attached Properties 7 Click Me! Click Me!

8 Content Controls Button RepeatButton ToggleButton CheckBox RadioButton Label Frame ListBoxItem StatusBarItem ScollBarViewer ToolTip UserControl Window NavigationWindow... 8

9 Simple Controls PasswordBox ScrollBar ProgressBar Slider TextBox RichTextBox... 9

10 Layout Controls StackPanel WrapPanel Canvas DockPanel Grid... 10

11 Headered Content Controls Expander GroupBoxItem TabItem... 11

12 Items Controls Menu ContextMenu StatusBar TreeView ListBox ComboBox TabControl... 12

13 Lookless Controls Control implies behaviour Probably supplies default look Designer free to supply new look 13

14 Styles are about setting properties… 14

15 Styles 15

16 Developer or Designer? 16 Designer Developer

17 Demo Java kursus KMD17


Download ppt "C# kursus Rohde & Schwarz1 Moderne GUI Windows Presentation Foundation."

Similar presentations


Ads by Google