Skip to content

Commit a60ac56

Browse files
authored
Update Create-UI-Controls.md
1 parent 871863b commit a60ac56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/guides/Create-UI-Controls.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ In the following example, the control implemented in `ManagedPackage.winmd` will
8282
8383
## Add custom icons to your controls
8484

85-
To display a custom icon in the toolbox/assets pane, add an image to your project or the corresponding `design.dll` project with the name “Namespace.ControlName.extension” and set the build action to “Embedded Resource”. Supported formats are `.png`, `.jpg`, `.jpeg`, `.gif`, and `.bmp`. The recommended image size is 64 pixels by 64 pixels.
85+
To display a custom icon in the toolbox/assets pane, add an image to your project or the corresponding `design.dll` project with the name “Namespace.ControlName.extension” and set the build action to “Embedded Resource”. You must also ensure that the associated `AssemblyInfo.cs` specifies the ProvideMetadata attribute - `[assembly: ProvideMetadata(typeof(RegisterMetadata))]`. See this [sample](https://github.com/NuGet/Samples/blob/master/ExtensionSDKasNuGetPackage/NativePackage.Design/Properties/AssemblyInfo.cs#L20).
86+
87+
Supported formats are `.png`, `.jpg`, `.jpeg`, `.gif`, and `.bmp`. The recommended image size is 64 pixels by 64 pixels.
8688

8789
In the example below, the project contains an image file named “ManagedPackage.MyCustomControl.png”.
8890

0 commit comments

Comments
 (0)