360 likes | 491 Views
“Love your XAML”. Rich Griffin. Who am I?. Rich Griffin Senior Technical Consultant. XAML projects. Lehman Brothers. Lehman Brothers. Mix UK Reader. McClaren. IPTV. Radio. XAML is a. Set of semantics that sit on top of raw xml that enables a common interpretation.
E N D
“Love your XAML” • Rich Griffin
Who am I? Rich Griffin Senior Technical Consultant
Set of semantics that sit on top of raw xml that enables a common interpretation. Technically XAML is not a language itself but a .Net serialisation and initialisation language for CLR objects. Mapping XML... tags to CLR types. attributes to CLR properties and events.
Declarative language Markup languages are easier to read for tools and humans. <Grid> <Button Content=“Click Me” /> </Grid>
Attached Properties Provide the ability to extend types with properties by other types. In effect they are type safe versions of the JavaScript expando properties that we are used to.
Markup Extensions. XAML defines a special namespace for dealing with the parser built in types and are represented enclosed in curly’s {}. They are implemented as CLR types and are similar to CLR attributes.
Markup Extensions X:Static <Button Command=‘{x:static ApplicationCommands.Close}’ />
Markup Extensions X:Data <XmlDataSource> <x:XData> <Customer xmlns=‘’ Name=‘Richard’ /> </x:XData> </XmlDataSource>
Where is the love ? Separation of concerns Comprehensiveness Expressivity Extensibility Workflow
Comprehensiveness Styles Templates Data Binding Animation
Expressivity Controls Layout Text 3D vector graphics
Extensibility XAML can represent UI controls XAML can represent .Net objects
Separation of concerns XAML provides the ability to separate the UI from the application logic Helps to separate design and development tasks allowing developers to work directly on artefacts created by designers.
Workflow Continual collaboration Continual iteration
What is in your WPF toolbox ? VS08 KAXAML Blend Snoop / Mole WPF Profiler
What is in your Silverlight toolbox ? VS08 KAXAML Blend Silverlight Spy Firebug
TFS Integration – developers be nice Blend does not support a SCM XAML Designers will need to have vs08 installed Some mentoring will be required on how to.. Be gentle... There is a high probability that designers will not know about source control
Take away Find a designer by them beer and pizza Start using KAXAML Learn the features of Blend Love your XAML
Links http://blogs.msdn.com/tims/ http://silverlight.net/ http://www.slxlab.com/ http://del.ic.ous/grippa
Any questions?(too late!) http://blogs.conchango.com/richardgriffin