Click or drag to resize
ViewPartAttribute Class
Extension attribute for integrating new view parts into Studio applications.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    Sdl.Core.PluginFrameworkExtensionAttribute
      Sdl.Desktop.IntegrationApi.ExtensionsViewPartAttribute

Namespace: Sdl.Desktop.IntegrationApi.Extensions
Assembly: Sdl.Desktop.IntegrationApi.Extensions (in Sdl.Desktop.IntegrationApi.Extensions.dll) Version: 4.0.0.0 (4.2.2764.0)
Syntax
public sealed class ViewPartAttribute : ExtensionAttribute

The ViewPartAttribute type exposes the following members.

Constructors
  NameDescription
Public methodViewPartAttribute
Default constructor for XML serialization.
Public methodViewPartAttribute(String, String, Keys)
Initialize the viewpart attribute.
Public methodViewPartAttribute(String, String, String, String, Keys)
Initialize the viewpart attribute.
Top
Properties
  NameDescription
Public propertyHelpTopic
Gets or sets the help topic ID for this view. Can be null.
Public propertyShortcut
Gets or sets the shortcut for accessing this view.
Top
Remarks

A view part needs to implement the AbstractViewPartController class.

Remarks

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.

See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments