Skip to content

Commit

Permalink
Merge pull request #7038 from drewnoakes/reorder-application-page-pro…
Browse files Browse the repository at this point in the history
…perties

Reorder properties on Application page
  • Loading branch information
drewnoakes authored Mar 24, 2021
2 parents b6c934b + 4112be3 commit e7a8c2d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
3 changes: 2 additions & 1 deletion docs/repo/property-pages/property-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ XAML files in the dotnet/project-system repo are configured for automatic locali

## Examples

- [Implement WarningsNotAsErrors in the new property pages](https://github.com/dotnet/project-system/pull/6971) - Demonstrates the addition of a new property, the use of `VisibilityCondition` and `DependsOn` metadata, and the implementation of an `IInterceptingPropertyValueProvider`. Includes an extensive explanation of the change in the commit message.
- [Add `WarningsNotAsErrors` property](https://github.com/dotnet/project-system/pull/6971) — Demonstrates the addition of a new property, the use of `VisibilityCondition` and `DependsOn` metadata, and the implementation of an `IInterceptingPropertyValueProvider`. Includes an extensive explanation of the change in the commit message.
- [Reorder properties within a page](https://github.com/dotnet/project-system/pull/7038) — Demonstrates reordering properties within a single category on a single page. This simple change is made entirely within a XAML rule file.
- [Add a new page of properties](https://github.com/dotnet/project-system/commit/a442d8e91fec98cb493d924f0903308efe188344) — Adds a new, empty, page that will appear as a top-level navigation item in the Project Properties UI.
- [Add a description property](https://github.com/dotnet/project-system/commit/64b7693e104a725fc0ac9d2bbda76909d9a7b9d1) — Adds a single synthetic property which appears in the UI as a fixed (localized) block of text.
- [Add search term alias](https://github.com/dotnet/project-system/pull/7041) — shows how to add additional terms for the purposes of search. These terms will not appear in the UI, but will cause a search operation to match the property. Useful for synonyms and common misspellings.
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@
HasConfigurationCondition="False" />
</Rule.DataSource>

<StringProperty Name="AssemblyName"
DisplayName="Assembly name"
Description="Specifies the name of the output file that will hold the assembly manifest."
Category="General" />

<StringProperty Name="RootNamespace"
DisplayName="Default namespace"
Description="Specifies the base namespace for files added to the project."
Category="General" />
<EnumProperty Name="OutputType"
DisplayName="Output type"
Description="Specifies the type of application to build."
Category="General">
<EnumValue Name="Library"
DisplayName="Class Library" />
<EnumValue Name="Exe"
DisplayName="Console Application" />
<EnumValue Name="WinExe"
DisplayName="Windows Application" />
</EnumProperty>

<BoolProperty Name="TargetMultipleFrameworks"
DisplayName="Target multiple frameworks"
Expand Down Expand Up @@ -94,18 +96,6 @@
</StringProperty.ValueEditors>
</StringProperty>

<EnumProperty Name="OutputType"
DisplayName="Output type"
Description="Specifies the type of application to build."
Category="General">
<EnumValue Name="Library"
DisplayName="Class Library" />
<EnumValue Name="Exe"
DisplayName="Console Application" />
<EnumValue Name="WinExe"
DisplayName="Windows Application" />
</EnumProperty>

<DynamicEnumProperty Name="StartupObject"
DisplayName="Startup object"
Description="Defines the entry point to be called when the application loads. Generally this is set either to the main form in your application or to the 'Main' procedure that should run when the application starts. Class libraries do not define an entry point."
Expand All @@ -118,6 +108,16 @@
</DynamicEnumProperty.Metadata>
</DynamicEnumProperty>

<StringProperty Name="AssemblyName"
DisplayName="Assembly name"
Description="Specifies the name of the output file that will hold the assembly manifest."
Category="General" />

<StringProperty Name="RootNamespace"
DisplayName="Default namespace"
Description="Specifies the base namespace for files added to the project."
Category="General" />

<EnumProperty Name="ResourceSpecificationKind"
DisplayName="Resources"
Description="Specifies how application resources will be managed."
Expand Down

0 comments on commit e7a8c2d

Please sign in to comment.