.NET Customisation
User Guide
using System.Collections.Generic;
using Aveva.ApplicationFramework;
using Aveva.ApplicationFramework.Presentation;
namespace Aveva.Presentation.AttributeBrowserAddin
public class AttributeBrowserAddin : IAddin
public string Description
return "Provides a simple attribute browser";
return "AttributeBrowserAddin";
public void Start(ServiceManager serviceManager)
// Get the WindowManager service
WindowManager windowManager = (WindowManager)serviceManager.GetService(typeof(WindowManager));
// Create a docked window to host an AttributeListControl
DockedWindow attributeListWindow = windowManager.CreateDockedWindow("Aveva.AttributeBrowser.AttributeList", "Attributes", new AttributeListControl(), DockedPosition.Right);
// Docked windows created at addin start should ensure their layout is saved between sessions.
// Create and register addins commands
// Get the CommandManager
CommandManager commandManager = (CommandManager)serviceManager.GetService(typeof(CommandManager));
ShowAttributeBrowserCommand showCommand = new ShowAttributeBrowserCommand(attributeListWindow);