title | description | type | page_title | slug | position | tags | ticketid | res_type |
---|---|---|---|---|---|---|---|---|
Control not Showing When Referencing Telerik dlls via NuGet Package |
RadDiagram control not displayed after using NoXaml NuGet assemblies without referencing theme. |
troubleshooting |
Missing element if reference UI for WPF dlls from nuget manager |
kb-diagram-missing-when-referencing-telerik-nuget-dlls |
0 |
nuget, manager, missing, noxaml |
1399337 |
kb |
Product Version | 2019.1.305 |
Product | RadDiagram for WPF |
The control (like RadDiagram, RadButton, etc.) is missing when referencing the following NuGet packages in the project.
{{region kb-diagram-missing-when-referencing-telerik-nuget-dlls-0}} {{endregion}}
The version and the targetFramework are not relevant in this case.
This happens because the referenced packages contain [NoXaml]({%slug xaml-vs-noxaml%}) dlls. To resolve this, reference the Xaml version of the dlls or reference the theme dll and merge the required resources.
Reference the Xaml version of the dlls.
The NuGet packages with the Xaml dlls are named with ".Xaml" at the end of the package's "id". Example: Telerik.Windows.Controls.Diagrams.for.Wpf.Xaml
.
Reference the theme dll package. Below you can find the name of the package for the Fluent theme.
{{region kb-diagram-missing-when-referencing-telerik-nuget-dlls-1}} {{endregion}}
Merge the corresponding resources as shown in the [Setting a Theme]({%slug styling-apperance-implicit-styles-overview%}) article. For example, to show RadDiagram, merge the following resources:
{{region kb-diagram-missing-when-referencing-telerik-nuget-dlls-2}} <ResourceDictionary.MergedDictionaries> </ResourceDictionary.MergedDictionaries> {{endregion}}
- [Available Themes]({%slug common-styling-appearance-available-themes%})