Contents xv
Writing Macros ..................................................................... 360
Recording a Macro ........................................................... 360
Saving a Macro ............................................................... 364
Editing Macros ............................................................... 365
Summary ........................................................................... 370
13 Extending Visual Studio 2010 ............................................. 371
Creating a Visual Studio Add-In .................................................... 372
Running the Add-In Project Wizard ........................................... 372
Examining an Add-In Wizard Solution .. . .. .. . .. .. . .. .. . .. .. . .. .. . .. .. . .. .. . .. 377
Drilling into the Connect Class ................................................ 378
Adding Functionality to an Add-In .................................................. 383
Reviewing the OnConnection Method ......................................... 384
Implementing the Exec Method ............................................... 391
Setting Status with QueryStatus ............................................... 395
Deploying an Add-In ............................................................... 397
Where to Go Next .................................................................. 399
Summary ........................................................................... 400
PART V Appendixes
A Introduction to XML ...................................................... 403
VS 2010 XML Editor ............................................................... 404
XML Prefixes ...................................................................... 404
XML Elements ..................................................................... 405
Attributes ........................................................................... 405
Namespaces ........................................................................ 406
The XML Menu .................................................................... 407
Configuring XML Options .......................................................... 407
Summary ........................................................................... 407
B Introduction to XAML .................................................... 409
Starting a WPF Project .............................................................. 410
Elements as Classes ................................................................ 411
Attributes as Properties ............................................................. 411
Executing the XAML Document .................................................... 411
Property Elements .................................................................. 412
Markup Extensions ................................................................. 414
Summary ........................................................................... 416
Index ...................................................................... 417