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 ) , new CategoryAttribute ( Resources . CategoryCommon ) ) ;
28
+ b . AddCustomAttributes ( nameof ( RichSuggestBox . PlaceholderText ) , new CategoryAttribute ( Resources . CategoryCommon ) ) ;
29
+ b . AddCustomAttributes ( nameof ( RichSuggestBox . PopupCornerRadius ) , new CategoryAttribute ( Resources . CategoryCommon ) ) ;
30
+ b . AddCustomAttributes ( nameof ( RichSuggestBox . PopupFooter ) , new CategoryAttribute ( Resources . CategoryCommon ) ) ;
31
+ b . AddCustomAttributes ( nameof ( RichSuggestBox . PopupFooterTemplate ) , new CategoryAttribute ( Resources . CategoryCommon ) ) ;
32
+ 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 ) ) ;
35
+ 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 ) ) ;
39
+ b . AddCustomAttributes ( new ToolboxCategoryAttribute ( ToolboxCategoryPaths . Toolkit , false ) ) ;
40
+ }
41
+ ) ;
42
+ }
43
+ }
44
+ }
0 commit comments