user7438259
user7438259

Reputation: 143

Create a custom button with icon in a custom group for Outlook using C# VSTO

I am fairly new to C# as well as the Outlook Library.

I have created a custom group in Meeting Tab of Outlook, which has a button in it. I also added an image in properties of Button(as displayed in the screenshot).

enter image description here

The image would represent the logo of my add-in. But I'm not able to change the size of that image.

I want my button to look similar to that of other buttons of Outlook just like 'Skype Meeting' or 'Meeting Notes' with the larger icon.

Can anyone please suggest me the way to design the Button with large icon.

I have created the Ribbon (Visual Designer) in Visual Studio 2015 for Outlook 2016 Add-In using VSTO. What would be the best way to do this using C#?

Upvotes: 0

Views: 2323

Answers (2)

user7438259
user7438259

Reputation: 143

I got the solution for this problem. We can set the property 'ControlSize' of Button to 'RibbonControlSizeLarge'.

Upvotes: 0

Slava Ivanov
Slava Ivanov

Reputation: 6912

There are two sizes for "button" ribbon control:

size="large"
size="normal"

If you add into your button control XML large size, you'll get the button look you are referring to. For more information on how to customize Office Fluent Ribbon please refer to the following great resources:

Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)

Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)

Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

Upvotes: 1

Related Questions