About the Creating a toolbar of globe tools Sample
[C#]
StyleGalleryCommand.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using ESRI.ArcGIS.ADF.BaseClasses;
using ESRI.ArcGIS.ADF.CATIDs;
namespace GlobeGraphicsToolbar
{
public class StyleGalleryCommand : ESRI.ArcGIS.Desktop.AddIns.Button
{
private StyleGallery _styleGallery = null;
public StyleGalleryCommand()
{
}
protected override void OnClick()
{
_styleGallery = new StyleGallery();
if (_styleGallery.IsStyleSelected() == true)
{
StyleGallerySelection.SetStyleGalleryItem(_styleGallery.StyleGalleryItem);
}
}
protected override void OnUpdate()
{
}
}
}
[Visual Basic .NET]
StyleGalleryCommand.vb
Imports Microsoft.VisualBasic Imports System Imports System.Collections.Generic Imports System.Text Imports System.IO Imports ESRI.ArcGIS.ADF.BaseClasses Imports ESRI.ArcGIS.ADF.CATIDs Namespace GlobeGraphicsToolbar Public Class StyleGalleryCommand Inherits ESRI.ArcGIS.Desktop.AddIns.Button Private _styleGallery As StyleGallery = Nothing Public Sub New() End Sub Protected Overrides Sub OnClick() _styleGallery = New StyleGallery() If _styleGallery.IsStyleSelected() = True Then StyleGallerySelection.SetStyleGalleryItem(_styleGallery.StyleGalleryItem) End If End Sub Protected Overrides Sub OnUpdate() End Sub End Class End Namespace