Click or drag to resize

VIZCore3DControlOnToolbarItemClicked Event

Toolbar Item Clicked Event

Namespace:  VIZCore3D.NET
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public event ToolbarItemClickedEventHandler OnToolbarItemClicked

Value

Type: ToolbarItemClickedEventHandler
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    // Add Event
    vizcore3d.OnToolbarItemClicked += VIZCore3D_OnToolbarItemClicked;
}

private void VIZCore3D_OnToolbarItemClicked(object sender, Event.ToolbarItemClickedEventArgs e)
{
    if(e.Item == VIZCore3D.NET.Data.ToolbarItems.MAIN_SAVE_VIZ 
        || e.Item == VIZCore3D.NET.Data.ToolbarItems.MAIN_SAVEAS_VIZ)
    {
        // Disable Menu :: Save
        e.Cancel = true;
    }
    else
    {
        e.Cancel = false;
    }
}
See Also