1+ // Licensed to the .NET Foundation under one or more agreements.
2+ // The .NET Foundation licenses this file to you under the MIT license.
3+ // See the LICENSE file in the project root for more information.
4+
5+ using System . ComponentModel ;
6+
7+ using Microsoft . Toolkit . Uwp . UI . Controls . Design . Properties ;
8+
9+ using Microsoft . VisualStudio . DesignTools . Extensibility ;
10+ using Microsoft . VisualStudio . DesignTools . Extensibility . Metadata ;
11+
12+ namespace Microsoft . Toolkit . Uwp . UI . Controls . Design
13+ {
14+ internal class RichSuggestBoxMetadata : AttributeTableBuilder
15+ {
16+ public RichSuggestBoxMetadata ( )
17+ : base ( )
18+ {
19+ AddCallback ( ControlTypes . RichSuggestBox ,
20+ b =>
21+ {
22+ b . AddCustomAttributes ( nameof ( RichSuggestBox . ClipboardCopyFormat ) , new CategoryAttribute ( Resources . CategoryCommon ) ) ;
23+ b . AddCustomAttributes ( nameof ( RichSuggestBox . ClipboardPasteFormat ) , new CategoryAttribute ( Resources . CategoryCommon ) ) ;
24+ b . AddCustomAttributes ( nameof ( RichSuggestBox . Description ) , new CategoryAttribute ( Resources . CategoryCommon ) ) ;
25+ b . AddCustomAttributes ( nameof ( RichSuggestBox . DisabledFormattingAccelerators ) , new CategoryAttribute ( Resources . CategoryCommon ) ) ;
26+ b . AddCustomAttributes ( nameof ( RichSuggestBox . Header ) , new CategoryAttribute ( Resources . CategoryCommon ) ) ;
27+ b . AddCustomAttributes ( nameof ( RichSuggestBox . HeaderTemplate ) ,
28+ new CategoryAttribute ( Resources . CategoryAppearance ) ,
29+ new EditorBrowsableAttribute ( EditorBrowsableState . Advanced )
30+ ) ;
31+ b . AddCustomAttributes ( nameof ( RichSuggestBox . PlaceholderText ) , new CategoryAttribute ( Resources . CategoryAppearance ) ) ;
32+ b . AddCustomAttributes ( nameof ( RichSuggestBox . PopupCornerRadius ) , new CategoryAttribute ( Resources . CategoryAppearance ) ) ;
33+ b . AddCustomAttributes ( nameof ( RichSuggestBox . PopupFooter ) , new CategoryAttribute ( Resources . CategoryCommon ) ) ;
34+ b . AddCustomAttributes ( nameof ( RichSuggestBox . PopupFooterTemplate ) ,
35+ new CategoryAttribute ( Resources . CategoryAppearance ) ,
36+ new EditorBrowsableAttribute ( EditorBrowsableState . Advanced )
37+ ) ;
38+ b . AddCustomAttributes ( nameof ( RichSuggestBox . PopupHeader ) , 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 . CategoryCommon ) ) ;
44+ b . AddCustomAttributes ( nameof ( RichSuggestBox . Prefixes ) , 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 ) ) ;
48+ b . AddCustomAttributes ( new ToolboxCategoryAttribute ( ToolboxCategoryPaths . Toolkit , false ) ) ;
49+ }
50+ ) ;
51+ }
52+ }
53+ }
0 commit comments