Skip to content

Commit a37860d

Browse files
committed
adjust category attributes
1 parent 836a501 commit a37860d

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

Microsoft.Toolkit.Uwp.UI.Controls.Input.Design/Controls/RichSuggestBox.Metadata.cs

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,27 @@ public RichSuggestBoxMetadata()
2424
b.AddCustomAttributes(nameof(RichSuggestBox.Description), new CategoryAttribute(Resources.CategoryCommon));
2525
b.AddCustomAttributes(nameof(RichSuggestBox.DisabledFormattingAccelerators), new CategoryAttribute(Resources.CategoryCommon));
2626
b.AddCustomAttributes(nameof(RichSuggestBox.Header), new CategoryAttribute(Resources.CategoryCommon));
27-
b.AddCustomAttributes(nameof(RichSuggestBox.HeaderTemplate), new CategoryAttribute(Resources.CategoryCommon));
27+
b.AddCustomAttributes(nameof(RichSuggestBox.HeaderTemplate),
28+
new CategoryAttribute(Resources.CategoryAppearance),
29+
new EditorBrowsableAttribute(EditorBrowsableState.Advanced)
30+
);
2831
b.AddCustomAttributes(nameof(RichSuggestBox.PlaceholderText), new CategoryAttribute(Resources.CategoryCommon));
29-
b.AddCustomAttributes(nameof(RichSuggestBox.PopupCornerRadius), new CategoryAttribute(Resources.CategoryCommon));
32+
b.AddCustomAttributes(nameof(RichSuggestBox.PopupCornerRadius), new CategoryAttribute(Resources.CategoryAppearance));
3033
b.AddCustomAttributes(nameof(RichSuggestBox.PopupFooter), new CategoryAttribute(Resources.CategoryCommon));
31-
b.AddCustomAttributes(nameof(RichSuggestBox.PopupFooterTemplate), new CategoryAttribute(Resources.CategoryCommon));
34+
b.AddCustomAttributes(nameof(RichSuggestBox.PopupFooterTemplate),
35+
new CategoryAttribute(Resources.CategoryAppearance),
36+
new EditorBrowsableAttribute(EditorBrowsableState.Advanced)
37+
);
3238
b.AddCustomAttributes(nameof(RichSuggestBox.PopupHeader), new CategoryAttribute(Resources.CategoryCommon));
33-
b.AddCustomAttributes(nameof(RichSuggestBox.PopupHeaderTemplate), new CategoryAttribute(Resources.CategoryCommon));
34-
b.AddCustomAttributes(nameof(RichSuggestBox.PopupPlacement), new CategoryAttribute(Resources.CategoryCommon));
39+
b.AddCustomAttributes(nameof(RichSuggestBox.PopupHeaderTemplate),
40+
new CategoryAttribute(Resources.CategoryAppearance),
41+
new EditorBrowsableAttribute(EditorBrowsableState.Advanced)
42+
);
43+
b.AddCustomAttributes(nameof(RichSuggestBox.PopupPlacement), new CategoryAttribute(Resources.CategoryAppearance));
3544
b.AddCustomAttributes(nameof(RichSuggestBox.Prefixes), new CategoryAttribute(Resources.CategoryCommon));
36-
b.AddCustomAttributes(nameof(RichSuggestBox.RichEditBoxStyle), new CategoryAttribute(Resources.CategoryCommon));
37-
b.AddCustomAttributes(nameof(RichSuggestBox.TokenBackground), new CategoryAttribute(Resources.CategoryCommon));
38-
b.AddCustomAttributes(nameof(RichSuggestBox.TokenForeground), new CategoryAttribute(Resources.CategoryCommon));
45+
b.AddCustomAttributes(nameof(RichSuggestBox.RichEditBoxStyle), new CategoryAttribute(Resources.CategoryAppearance));
46+
b.AddCustomAttributes(nameof(RichSuggestBox.TokenBackground), new CategoryAttribute(Resources.CategoryBrush));
47+
b.AddCustomAttributes(nameof(RichSuggestBox.TokenForeground), new CategoryAttribute(Resources.CategoryBrush));
3948
b.AddCustomAttributes(new ToolboxCategoryAttribute(ToolboxCategoryPaths.Toolkit, false));
4049
}
4150
);

0 commit comments

Comments
 (0)