| ViewAttribute Class |
Namespace: Sdl.Desktop.IntegrationApi.Extensions
The ViewAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
| ViewAttribute |
Default constructor for XML serialization.
| |
| ViewAttribute(String, String, String, Type, String, Keys, Boolean) |
Initialize the view attribute
|
| Name | Description | |
|---|---|---|
| AllowViewParts |
Gets or sets if the view can contain viewparts
| |
| HelpTopic |
Gets or sets the help topic ID for this view. Can be null.
| |
| IsSeparator |
Is separator determines if a separator should be added before the action
| |
| LocationByType |
Gets or sets the location of the view
| |
| Shortcut |
Gets or sets the shortcut for accessing this view.
| |
| ZIndex |
Defines a 0 based index order for the UI elements where the highest value is the most important.
|
A view is represented as an item in the explorer bar and is responsible for the showing the UI.
A view needs to implement the AbstractViewController class.
The framework also provides support for getting property values from the PluginResources.resx resource file, which is deployed together with the plug-in manifest. To specify that the value of a certain string property needs to be retrieved from the resource file, annotate the property definition with the PluginResourceAttribute attribute. Users should now specify the name of the resource key, instead of the actual value, as the property value. When no resource string with the specified key can be found, the framework keeps the specified string as the property value. To define non-string properties whose value is stored in the PluginResources.resx resource file, create a string property, which value should be set to a resource key. When consuming the extension, use GetPluginResourceT(String) tio retriece the resource from the plug-in resource file.