PanelAttribute

  • Namespace: Turian
  • Source File: PanelAttribute.cs

Marks a class as a panel, as it will be placed in the dock. Also, create a menu item that will open the panel.

Remarks

Path is the path to the menu item. The path is separated by '/'.

Example

```csharp [Panel("App Settings")] public class AppSettingsPanel : Panel { public AppSettingsPanel(IAppSettings appSettings) { // Handle the Open menu item click event here. Console.WriteLine("Open menu item clicked."); } } ```

Properties

Path

(string) : The path to the menu item. The path is separated by '/'.

Name

(string) : The name of the panel. It will be used as the title of the panel and the menu item name.