The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Creating Custom Controls


Custom controls are the most flexible components of a formatting file. Unlike table, list, and wide views that define a formal structure of data, such as a table of data, custom controls allow you to define how an individual piece of data is displayed. You can define a common set of custom controls that are available to all the views of the formatting file, you can define custom controls that are available to a specific view, or you can define a set of controls that are available to a group of objects.

The following example shows a custom control that is defined in the Certificates.Format.ps1xml file. This custom control is used to separate the Signature objects displayed in a table view.

                <Text AssemblyName="System.Management.Automation" BaseName="FileSystemProviderStrings" 
                  <ScriptBlock>split-path $_.Path</ScriptBlock>