提交 68052d00 编写于 作者: D David Poeschl

Add explanatory text to Naming Styles

Fixes #15217

Also, change the column header from "Style" to "Required Style"
上级 0d5e74c2
...@@ -750,6 +750,17 @@ internal class ServicesVSResources { ...@@ -750,6 +750,17 @@ internal class ServicesVSResources {
} }
} }
/// <summary>
/// Looks up a localized string similar to For a given symbol, only the topmost rule with a matching &apos;Specification&apos; will be applied. Violation of that rule&apos;s &apos;Required Style&apos; will be reported at the chosen &apos;Severity&apos; level..
/// </summary>
internal static string For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level {
get {
return ResourceManager.GetString("For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_ap" +
"plied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Seve" +
"rity_level", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to For accessors. /// Looks up a localized string similar to For accessors.
/// </summary> /// </summary>
...@@ -1632,6 +1643,15 @@ internal class ServicesVSResources { ...@@ -1632,6 +1643,15 @@ internal class ServicesVSResources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Required Style.
/// </summary>
internal static string Required_Style {
get {
return ResourceManager.GetString("Required_Style", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Required Suffix:. /// Looks up a localized string similar to Required Suffix:.
/// </summary> /// </summary>
...@@ -1794,15 +1814,6 @@ internal class ServicesVSResources { ...@@ -1794,15 +1814,6 @@ internal class ServicesVSResources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Style.
/// </summary>
internal static string Style {
get {
return ResourceManager.GetString("Style", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Summary:. /// Looks up a localized string similar to Summary:.
/// </summary> /// </summary>
......
...@@ -798,8 +798,8 @@ Additional information: {1}</value> ...@@ -798,8 +798,8 @@ Additional information: {1}</value>
<data name="Specification" xml:space="preserve"> <data name="Specification" xml:space="preserve">
<value>Specification</value> <value>Specification</value>
</data> </data>
<data name="Style" xml:space="preserve"> <data name="Required_Style" xml:space="preserve">
<value>Style</value> <value>Required Style</value>
</data> </data>
<data name="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule" xml:space="preserve"> <data name="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule" xml:space="preserve">
<value>This item cannot be deleted because it is used by an existing Naming Rule.</value> <value>This item cannot be deleted because it is used by an existing Naming Rule.</value>
...@@ -822,4 +822,7 @@ Additional information: {1}</value> ...@@ -822,4 +822,7 @@ Additional information: {1}</value>
<data name="Preference" xml:space="preserve"> <data name="Preference" xml:space="preserve">
<value>Preference</value> <value>Preference</value>
</data> </data>
<data name="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level" xml:space="preserve">
<value>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</value>
</data>
</root> </root>
\ No newline at end of file
...@@ -42,11 +42,13 @@ ...@@ -42,11 +42,13 @@
<KeyBinding Key="Down" Modifiers="Alt" Command="{StaticResource MoveDown}" /> <KeyBinding Key="Down" Modifiers="Alt" Command="{StaticResource MoveDown}" />
</Grid.InputBindings> </Grid.InputBindings>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" /> <RowDefinition Height="*" />
<RowDefinition Height="auto" /> <RowDefinition Height="auto" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<TextBlock Grid.Row="0" Margin="5 0 5 0 " TextWrapping="Wrap" Text="{x:Static style:NamingStyleOptionPageControl.ExplanatoryText}" />
<DataGrid <DataGrid
Grid.Row="0" Grid.Row="1"
x:Uid="CodeStyleContent" x:Uid="CodeStyleContent"
x:Name="CodeStyleMembers" x:Name="CodeStyleMembers"
Margin="0,5,0,0" Margin="0,5,0,0"
...@@ -162,7 +164,7 @@ ...@@ -162,7 +164,7 @@
</DataGridTemplateColumn> </DataGridTemplateColumn>
<DataGridTemplateColumn <DataGridTemplateColumn
x:Name="style" x:Name="style"
Header="{x:Static style:NamingStyleOptionPageControl.StyleHeader}" Header="{x:Static style:NamingStyleOptionPageControl.RequiredStyleHeader}"
Width="3*"> Width="3*">
<DataGridTemplateColumn.CellTemplate> <DataGridTemplateColumn.CellTemplate>
<DataTemplate> <DataTemplate>
...@@ -233,7 +235,7 @@ ...@@ -233,7 +235,7 @@
</DataGrid.Columns> </DataGrid.Columns>
</DataGrid> </DataGrid>
<Border Grid.Row="1"> <Border Grid.Row="2">
<StackPanel Orientation="Horizontal" <StackPanel Orientation="Horizontal"
Margin="7"> Margin="7">
<Button Name="AddButton" <Button Name="AddButton"
......
...@@ -22,7 +22,8 @@ internal partial class NamingStyleOptionPageControl : AbstractOptionPageControl ...@@ -22,7 +22,8 @@ internal partial class NamingStyleOptionPageControl : AbstractOptionPageControl
{ {
public static string ReorderHeader => ServicesVSResources.Reorder; public static string ReorderHeader => ServicesVSResources.Reorder;
public static string SpecificationHeader => ServicesVSResources.Specification; public static string SpecificationHeader => ServicesVSResources.Specification;
public static string StyleHeader => ServicesVSResources.Style; public static string RequiredStyleHeader => ServicesVSResources.Required_Style;
public static string ExplanatoryText => ServicesVSResources.For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level;
private NamingStyleOptionPageViewModel _viewModel; private NamingStyleOptionPageViewModel _viewModel;
private readonly string _languageName; private readonly string _languageName;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册