Extensible Application Markup Language XAML - TKK - TML

24 downloads 1055 Views 89KB Size Report
Apr 16, 2007 ... Contents. ▫ Basic information about XAML. ▫ Example. ▫ What, Where, Why. ▫ Tools. ▫ Alternatives. ▫ Conclusion ...
Extensible Application Markup Language XAML Andreas Finne Eugenio Carrillo Marinetto

Contents Basic information about XAML  Example  What, Where, Why  Tools  Alternatives  Conclusion 

Your background

?

XAML XML-based language by Microsoft  No replacement for C#  Create trees of .NET objects 

Demonstration 

Hello World in XAML Hello World!

Demonstration 

Result:

Contents Basic information about XAML  Example  What, Where, Why  Tools  Alternatives  Conclusion 

What is XAML? XML-based  Create and initialise .NET objects  In combination with C# for behaviour 

 Partial

classes

What is XAML? (cont.) 

Set properties of objects  Attributes 

Hello World!

 Property

element syntax

Click me!

 Attached

properties





Mostly for layout

What is XAML? (cont.) 

Markup Extensions  Indicated 

by curly bracers



 Allows

for additional functionality

NullExtension  TypeExtension  ArrayExtension 

Where is XAML used? 

.NET Framework 3.0 (WinFX)  Windows

Presentation Foundation (WPF)

Predecessor: Windows Forms  UI design  Vector graphics  Browser applications (XBAP)  3D graphics 

 Windows 

Workflow Foundation (WF)

Declarative business flows

Where is XAML used? (cont.) 

Microsoft Silverlight (formerly WPF/E)  Cross-browser,

cross-platform plugin  Allows using XAML in web applications  Rich user interfaces, sound, video  Announced April 16th 2007 

XAML Paper Specification (XPS) A

sort of XAML PDF

Why? Separate presentation and logic  Easier for tools to handle XML 

Contents Basic information about XAML  Example  What, Where, Why  Tools  Alternatives  Conclusion 

Tools 

Microsoft Visual Studio 2005  November

2006 CTP extensions  Preview of Visual Designer for WPF  No further development for VS2005  Allows for creating Windows applications utilising WPF and XAML

Tools (cont.) Visual Studio, codename ”Orcas”  March

2007 CTP  New versions of Visual Designer for WPF  More robust than November 2006 CTP  Better XAML editor and Designer  Windows applications

Tools (cont.) 

Mobiform Aurora  2D

vector-based graphics editor  Uses XAML as its format  Layers, shapes  Creates a tree of graphics objects 

ZAM 3D  Creating

3D objects and exporting to XAML  Supports animation of 3D objects

Tools (cont.) 

Microsoft Expression Blend  Part

of Microsoft Expression Studio  Release Candidate  2D and 3D vector graphics  Audio/Video

Alternatives 

XUL  User

interface for Mozilla  Web applications 

SVG  2D

graphics with XML  Programming API 

Flash  Web

based interactive applications  Vector graphics

Conclusions XML-based language for declaring and initialising trees of .NET objects  .NET Framework 3.0  Can be used in WPF  Separates presentation and logic  Tools are still under development 

More information   

Xaml.net http://www.xaml.net/ Microsoft .NET Framework 3.0 Community http://www.netfx3.com/ MSDN Library http://msdn2.microsoft.com/en-us/library/default.aspx

Thank you!

Suggest Documents