Home Page Icon
Home Page
Table of Contents for
Part IV Enhancing the VS 2010 Experience
Close
Part IV Enhancing the VS 2010 Experience
by Joe Mayo
Microsoft® Visual Studio® 2010 A Beginner’s Guide
Cover Page
Microsoft® Visual Studio® 2010 A Beginner’s Guide
Copyright Page
Dedication
Contents
Acknowledgments
Introduction
Part I Understanding Visual Studio 2010 Essentials
1 Introducing Visual Studio 2010
What Is Visual Studio 2010 About?
Automatically Generated Code
Rapid Coding Experience
Everything at Your Fingertips
Customizability and Extensibility
Installing Visual Studio 2010
Navigating the Visual Studio 2010 Environment
The Menu
Toolbar
Work Area
Toolbox
Solution Explorer
Status Bar
Managing VS Windows
Expanding and Collapsing Windows
Docking Windows
Floating Windows
Tabbed Windows
Closing and Opening Windows
Modifying Environment Settings after Setup
Exporting Selected Environment Settings
Importing Selected Environment Settings
Resetting All Settings
Familiarization with Visual Studio Project Types
Windows Projects
Web Projects
Office Projects
SharePoint Projects
Database Projects
Summary
2 Learning Just Enough C# or VB.NET: Basic Syntax
Starting a Bare-Bones Project
Examining the Code Skeleton
The Main Method
The Program Class
The FirstProgram Namespace
An Overview of the VS Code Editor
Class and Member Locators
Bookmarks
Setting Editor Options
Saving Time with Snippets
Coding Expressions and Statements
Making Intellisense Work for You
Running Programs
Primitive Types and Expressions
Enums
Branching Statements
Loops
Summary
3 Learning Just Enough C# and VB.NET: Types and Members
Creating Classes
Class Syntax
Class Inheritance
The class Snippet
Writing Methods
Declaring and Using a Method
Declaring Parameters and Passing Arguments
Returning Data and Using Method Results
Method Snippets
Coding Fields and Properties
Declaring and Using Fields
Declaring and Using Properties
The Property Snippet
Summary
4 Learning Just Enough C# and VB.NET: Intermediate Syntax
Understanding Delegates and Events
Events
Delegates
Event, Delegate, and Handler Code Completion
Implementing Interfaces
Creating an Interface
Making Classes Implement the Interface
Writing Code That Uses an Interface
The interface Snippet
Applying Arrays and Generics
Coding Arrays
Coding Generics
Summary
Part II Learning the VS 2010 Environment
5 Creating and Building Projects
Constructing Solutions and Projects
Creating a New Project
Navigating the Solution Explorer
Examining Property Settings
Assembly Name
Default Namespace
Target Framework
Output Type
Startup Object
Icon and Manifest
Assembly Information
Referencing Assemblies
Adding a .NET Assembly Reference
Managing Assembly References
Referencing Your Own Class Libraries
Using Code in Class Libraries
Compiling Applications
Building Solutions/Projects
Rebuilding Solutions/Projects
Cleaning Solutions/Projects
Managing Dependencies and Build Order
Managing Compilation Settings
Navigating a Project with Class View
Using the Class Designer
Class Designer Visualization
Class Designer Code Generation
Summary
6 Debugging with Visual Studio
Example Code for This Chapter
Development-Time Code Tools
Configuring Debug Mode
Setting Breakpoints
Creating a Breakpoint
Customizing a Breakpoint
Managing Breakpoints
Stepping Through Code
Inspecting Application State
Locals and Autos Windows
Watch Windows
The Immediate Window
The Call Stack Window
The Quick Watch Window
Watching Variables with Pin To Source
Working with IntelliTrace
Solving Problems with VS Debugger
A Program with Bugs
Finding the Bug
Fixing the First Bug
Debugging and Resolving NullReferenceException Problems
Summary
7 Working with Data
Working with Databases
Introduction to Server Explorer
Creating a Database
Adding Tables
Relating Tables with Foreign Keys
Adding Stored Procedures
Configuring Database Options
Learning Language Integrated Query (LINQ)
Querying Object Collections with LINQ
Creating a LINQ Projection with Anonymous Types
Using LINQ to Sort Collection Results
Handling Data with LINQ to SQL
Setting Up LINQ to SQL
Working with the LINQ to SQL Designer
Introduction to Querying LINQ to SQL
Performing Queries on Multiple Tables
Inserting Data with LINQ to SQL
Updating Data with LINQ to SQL
Deleting Data with LINQ to SQL
Summary
Part III Building Programs with VS 2010
8 Building Desktop Applications with WPF
Starting a WPF Project
Understanding Layout
Grid Layout
StackPanel Layout
DockPanel Layout
WrapPanel Layout
Canvas Layout
Using WPF Controls
Managing Windows for Controls
Setting Properties
Handling Events
Coding Event Handlers
Working with Data in WPF
Setting Up a Data Source
Configuring a ComboBox
Reading and Saving Data
Using the DataGrid
Summary
9 Creating Web Applications with ASP.NET MVC
Understanding ASP.NET MVC
Starting an ASP.NET MVC Project
Creating the Models
Building Controllers
Displaying Views
Looking Inside a View
Organizing View Files
Assigning MasterPage Files
Partial Views (a.k.a. User Controls)
Managing Routing
Building a Customer Management Application
Creating a Repository
Creating a Customer Controller
Displaying a Customer List
Adding a New Customer
Updating Existing Customers
Deleting a Customer
Summary
10 Designing Silverlight Applications
Starting a Silverlight Project
Navigating the Silverlight Designer
Using Silverlight Controls
Running Silverlight Out-of-Browser (OOB)
Deploying Silverlight Applications
Summary
11 Deploying Web Services with WCF
Starting a WCF Project
Specifying a Contract with WCF Interfaces
Implementing Logic with WCF Classes
Hosting a WCF Service
Following General Hosting Procedures
Installing IIS 7 on Windows 7
Creating a Web Site on IIS 7 on Windows 7
Deploying the WCF Service to IIS
Communicating with a WCF Service
Creating a Service Reference
Coding Web Service Calls
Deploying a Client That Consumes a Web Service
Creating a Web Service in a Web Site
Summary
Part IV Enhancing the VS 2010 Experience
12 Customizing the Development Environment
Implementing Custom Templates
Creating New Project Templates
Creating New Item Templates
Creating Custom Snippets
Creating a New Snippet
Managing the Snippet Library
Writing Macros
Recording a Macro
Saving a Macro
Editing Macros
Summary
13 Extending Visual Studio 2010
Creating a Visual Studio Add-In
Running the Add-In Project Wizard
Examining an Add-In Wizard Solution
Drilling into the Connect Class
Adding Functionality to an Add-In
Reviewing the OnConnection Method
Implementing the Exec Method
Setting Status with QueryStatus
Deploying an Add-In
Where to Go Next
Summary
Part V Appendixes
A Introduction to XML
VS 2010 XML Editor
XML Prefixes
XML Elements
Attributes
Namespaces
The XML Menu
Configuring XML Options
Summary
B Introduction to XAML
Starting a WPF Project
Elements as Classes
Attributes as Properties
Executing the XAML Document
Property Elements
Markup Extensions
Summary
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
11 Deploying Web Services with WCF
Next
Next Chapter
12 Customizing the Development Environment
Part IV
Enhancing the VS 2010 Experience
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset