Archive for December, 2009

Re-enable a disabled Excel Add-in (and other Office Add-ins)

December 30, 2009

Developing add-in for Office (Word, Excel, Project, etc) you may have to stop programs very often during debug sessions.
When you start again Word/Excel/ecc you may accidentaly disable your add-in.
Re-enable it is very easy, just read here: How to: Re-enable an Application-Level Add-in That Has Been Disabled.

Copy&Paste for Office 2007:

To re-enable an add-in that has been hard disabled by Excel 2007, PowerPoint 2007, or Word 2007

  1. In the application, click the Microsoft Office Button.
  2. Click the <ApplicationName> Options button.
  3. In the categories pane, click Add-ins.
  4. In the details pane, locate the add-in in the Disabled Application Add-ins list.

    The Name column specifies the name of the assembly, and the Location column specifies the full path of the application manifest.

  5. In the Manage box, click Disabled Items, and then click Go.
  6. Select the add-in and click Enable.

Click Close.

Have a nice reading. ๐Ÿ˜‰
source: How to: Re-enable an Application-Level Add-in That Has Been Disabled

Technorati tags: Office, Addin

WPF: colors in Colors preview

December 29, 2009

XAML Hands on …
Without a WYSIWYG XAML editor at hand, you may only write XAML by hand.
Visual Studio’s intellisense helps a lot, but what happens when color come ?
AliceBlue, Pink, GreenYellow … ok
And what about all those strange codes #FF45ED ย ?

Without a very usefll XAML editor at hand, you may refer to this post: WPF Colors, static classes and reflection in .Net .

Harley’s post contains few lines of code he wrote in order to get all colors defined in Colors and their codes … further more, this post display an example of every color;
this way, you have a palette everywhere, so you may see what colors areย AliceBlue, Chartreuse, Gainsboro, LightSlateGray, SeaGreen, Teal, … you know ๐Ÿ˜‰

source: WPF Colors, static classes and reflection in .Net

UPDATE: MSDN has a color palette as well,here: .NET Framework Class Library, Colors Class. ๐Ÿ˜‰

Technorati tags: WPF, XAML, Color, Palette

Spot the difference (funny)

December 25, 2009

Apple Mouse vs PC Mouse


(photo: courtesy by Mouse Apple )

(photo: courtesy by Mouse computing )
Microsoft 5 button mouse is just an example, many other manufacturers (ie Logitech MX) provide many multi-buttons mouse

Man vs Woman (photo: courtesy by ??? (dunno, sorry ๐Ÿ˜ฆ ))

Drag&Drop in WPF (lang italian)

December 24, 2009

Adding DragNDrop feature give a brilliant look to our application.
People are used to it, and they (inconsciously) look for a better UX with day-by-day application.

Cristian Civera wrote a short ย (and easy to understand!!!) post on MSDN Tips & Tricks italian section.
Just three event (*_Click, *_DragEnter, *_Drop) and drag & drop is ready to use. ๐Ÿ˜‰

source: Supportare il Drag&Drop nelle applicazioni WPF (lang:IT)

Technorati tags: Entity WPF

Video tutorial on WPF and M-V-VM

December 22, 2009

If you are a newbie to WPF and M-V-VM, than you may find interesting this 2hr video tutorial by Jason Dolinger.
In this video Jason begins with a standard WPF application, then move to M-V-VM (dependency object & dependency property), moving to unit tests and then to dependency injection (Unity), more …

Watch it! ๐Ÿ˜‰

source: the video, Jason Dolinger on Model-View-ViewModel

source: WPF binding multiple controls to different datacontexts by stackoverflow.com

Technorati tags: WPF, MVVM