<VB.NET>
'' set the
information about the command we will be assigning to the button
Dim pushButtonDataHello As New PushButtonData("PushButtonHello", "Hello World", m_assembly, "RevitIntroVB.HelloWorld")
'' add a button to the panel
Dim pushButtonHello As PushButton = panel.AddItem(pushButtonDataHello)
''
add an icon
'' make sure you references to WindowsBase and
PresentationCore, and import System.Windows.Media.Imaging
namespace.
pushButtonHello.LargeImage = New BitmapImage(New Uri(m_imageFolder + "ImgHelloWorld.png"))
''
add a tooltip
pushButtonHello.ToolTip = “押しボタン"
</VB.NET>