Skip to content

Commit

Permalink
Add formatting file with a table view for KnownFolder
Browse files Browse the repository at this point in the history
  • Loading branch information
jberezanski committed Jan 2, 2014
1 parent fc38669 commit ec84501
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="KnownFolders.format.ps1xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
41 changes: 41 additions & 0 deletions BlaSoft.PowerShell.KnownFolders/KnownFolders.format.ps1xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
<ViewDefinitions>
<View>
<Name>KnownFolder</Name>
<ViewSelectedBy>
<TypeName>BlaSoft.PowerShell.KnownFolders.KnownFolder</TypeName>
</ViewSelectedBy>
<GroupBy>
<PropertyName>Category</PropertyName>
</GroupBy>
<TableControl>
<TableHeaders>
<TableColumnHeader>
<Width>30</Width>
</TableColumnHeader>
<TableColumnHeader>
<Width>12</Width>
</TableColumnHeader>
<TableColumnHeader>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>Name</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>CanRedirect</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>Path</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
</ViewDefinitions>
</Configuration>
Binary file modified BlaSoft.PowerShell.KnownFolders/KnownFolders.psd1
Binary file not shown.

0 comments on commit ec84501

Please sign in to comment.