Subscribe: Building Better Software - One Line At A Time
Preview: Building Better Software - One Line At A Time

Building Better Software – One Line At A Time

Last Build Date: Fri, 09 Jul 2010 11:52:34 +0000


Resizing the Select Branches “dialog”/semi-modal Panel in VS 2010 Branch Visualization

Fri, 09 Jul 2010 11:52:34 +0000

  One of the few annoying things about the Select Branches panel in Branch Visualization is that it looks like a modal dialog that cannot be moved or resized. We are going to address this in V.Next!  :)  Though not resizable, the panel can be “maximized” to fill the container document window to gain more...

Shortcut Keys for VS2010 Branch Visualization

Fri, 09 Jul 2010 11:37:55 +0000

  There are a few shortcut keys that can quite useful inside a branch hierarchy or tracking changes visualization. In a branch hierarchy visualization, pressing the Insert while on a node with children (+ visible) drops down the child branch selector. Pressing Shift + Insert shows the general branch selection panel. Pressing Delete (x visible)...

Go to Changeset from Team Explorer

Mon, 14 Dec 2009 06:25:00 +0000

In a previous posting, I mentioned that Ctrl+G in VS2010 brings up the new Go to Changeset dialog from the Source Control Explorer. In RTM, Ctrl+G from Team Explorer will also do the same. Furthermore, we've added another entry for tracking a changeset - directly from the Go to Changeset dialog. Just enter a changeset...

How to convert a Visual Studio 2010 Branch back to a Folder

Fri, 20 Nov 2009 06:59:19 +0000

Visual Studio 2010 extends the concept of a folder as a “first-class” branch and introduces the tools to convert folders to first-class branches to enable exciting new Branch Visualization and Tracking Changes features. For reference, please see and Source Control Explorer context menu and toolbar have the button to convert a folder to...

Go to Changeset for Visual Studio 2010

Fri, 20 Nov 2009 05:42:42 +0000

In previous versions of Visual Studio, hitting Ctrl+G from Source Control Explorer brings up the Find Changeset dialog. In VS 2010, Ctrl+G brings up the new Go to Changeset dialog which lets you quickly enter a changeset number and get the changeset details. In this dialog, you can also hit Ctrl+G again to bring up...

WPF TreeView Memory Consumption and Performance

Fri, 20 Nov 2009 05:29:05 +0000

One very simple thing you can do that can significantly reduce the memory consumption and drastically improve performance of a WPF TreeView is to set the following two properties. In XAML, you would do: In a simple test of a data-bound TreeView containing just 5000 items, turning on...

Data Bind Using Only Code Behind

Sun, 21 Jun 2009 17:54:04 +0000

We are all familiar with the use of WPF Binding in XAML. For example, the following lines bind the caption of a Button (variableCaptionButton) to the text of a TextBox (sourceText).

Array as a WPF ConverterParameter

Fri, 19 Jun 2009 00:31:09 +0000

A WPF value converter accepts a value and an optional parameter. The parameter can be specified in the XAML binding as a string like the following:     Instead of one string, what if you want to pass an array of strings as a converter parameter? What about...

Setting Initial Focus in XAML

Thu, 11 Jun 2009 09:34:13 +0000

Last time we looked at a tricky problem of setting the initial focus to a specific item in a populated WPF ListView. Most of the time, however, we just want to set the initial focus to a control (like a TextBox or a Button) in our UI. There are a couple of ways to accomplish...

Setting the Initial Focus to a ListView item

Wed, 29 Apr 2009 13:03:42 +0000

This blog describes the steps needed to set the initial keyboard focus to an item in a WPF ListView. The items in the list can be static or data bound. The trick is to access the ListViewItem associated with an item and then set keyboard focus to it. The following are snippets of the code...