Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Mon Apr 16, 2007 6:14 am Post subject: HOWTO : Add property sheet support to the root folder of a namespace extension |
|
|
In order to display a property sheet to the root folder of a namespace extension you must use EZShellExtensions.Net to develop a property sheet extension and target the property sheet extension towards the
root folder of your namespace extension by using the TargetExtension attribute as follows :
[TargetExtension(RegistryHive.ClassesRoot,"CLSID\\{guid of NamespaceExtension}")]
class MyRootpropertySheetExtension : PropertySheetExtension
{
...
...
}
The property sheet extension can be present in the same assembly as your namespace extension. You can quickly add a new property sheet extension to your project from the 'Project-->Add New Item..' dialog
box.
Notes
1. The attributes for the root folder of the namespace extension must include the NSEItemAttributes.HasPropSheet attribute. The attributes for the root folder are specified in the GetNSETargetInfo method of your root folder class using the NSETargetInfo.Attributes property.
2. The LogicNP.PropSheetExtensionHelper.dll assembly must also be referenced by your assembly like for any property sheet extension project. |
|