UI Manager Sample for .NET 4.0

This sample demonstrates how to customize the user interface (UI) of Microsoft Office Outlook 2007 by implementing extensibility interfaces in an add-in. This sample uses extensibility interfaces to create a Ribbon customization, a custom task pane, and a custom form region.

4 Star
6,224 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

// Copyright © Microsoft Corporation.  All Rights Reserved.
// This code released under the terms of the 
// Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.)

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace UiManagerOutlookAddIn.AddinUtilities
    // This interface is not CLS compliant because of its Office property.
    public interface IRibbonConnector
        Microsoft.Office.Core.IRibbonUI Ribbon

    // Regasm won't register an assembly that only contains interfaces.
    // We need to define a COM-createable class in order to get a typelib.
    // We don't want to use this class for anything, because we're
    // implementing the interface in another assembly.
    public class RibbonConnectorPlaceholder : IRibbonConnector 
        public Microsoft.Office.Core.IRibbonUI Ribbon
            get { return null; }
            set { }