The Role of Select and Direct Select in Blend

The Blend IDE can be a strange and mysterious place for many developers. As you most likely already know, Blend, in general, is a tool to generate XAML for WPF and Silverlight applications, using a fancy graphical environment.

Similar to Visual Studio, Blend maintains a pallet of controls which can be placed on the visual designer surface, after which point they can be configured using the Properties window.

Naturally, as you are creating a UI, you may need to relocate or reposition items on the designer, and this simple task smacks you right into the odd distinction of a "Selection" and "Direct Select". If you examine the Blend Tools pallet, you will see two selection icons to represent each possibility:

image

Now, assume you have placed a Button control and a rendered geometry (via the Pencil tool) onto the designer.

If you wish to simple select an item for the purpose of resizing, moving or rotation, you will want to use the Select option (press the V key as a keyboard shortcut).  Once you have done so, you will be able to tweak the selected item as you see fit:

image

This being said, what is a "Direct Selection" used for (press the A key as a keyboard shortcut).  Well, the answer is "it depends".  If you perform a direct select on a rendered vector graphic, it will allow you to redefine the path itself using a set of pull points:

image

If you perform a direct select on a ContentControl derived item (such as a Button) it provides a way to drill into the internal content of the control. This can be helpful if you have (for example) a Button which set the Content property to a layout manager (a Canvas perhaps) which contains some number of sub items. In this case, a direct select will allow you to edit the internal aspects of the Button, rather than its general dimensions and placement.

Enjoy!


Posted by: Andrew Troelsen
Posted on: 6/29/2010 at 1:48 PM
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Subscribe to this BlogRSS comment feed

Add comment




biuquote
  • Comment
  • Preview
Loading


Contact Us 651-994-8558 1-800-866-9884
Home | Training | Curriculum | Course Finder | Schedule | Enroll | Twin Cities Java User Group | Consulting | Foundation | Jobs | About Us | Our Story | Press Room | Instructors | President | Map & Directions | Sitemap

Java Training | JSF / Struts / Spring / Hibernate Training | Java Power Tools Training | .NET 4.0 & Visual Studio 2010 Training | .NET 3.5 and Visual Studio 2008 Training | .NET 2.0 and Visual Studio 2003 Training | Prism / MVVM / MEF Training | Microsoft Web Development Training | Cloud Computing Training | Ajax / Web Services / XML Training | Groovy and Grails Training | SQL Server 2008 Training | SQL Server 2005 Training | Mobile Development Training | SharePoint 2010 Training | SharePoint 2007 Training | Agile, Process, Analysis & Design Training | Arch/Design Patterns Training | Microsoft Official Curriculum Training | Web Development Training | Ruby Training | Rational Application Developer (RAD) Training | WebSphere Application Server Training | WebSphere Portal Training | WebLogic Training | Boot Camp Training | Project Management Training | C++ Training | Metro / WinRT / Windows 8 Development Training | Retired

Intertech delivers training on-site and virtually serving cities including Phoenix, AZ | San Francisco, CA | Los Angeles, CA | San Diego, CA | San Jose, CA | Washington, DC | Chicago, IL | Orlando, FL | Boston, MA | Duluth, MN | Minneapolis St. Paul, MN | Rochester, MN | Raleigh-Durham, NC | New York, NY | Philadelphia, PA | Austin, TX | Dallas, TX | Houston, TX | Seattle, WA.