Skip to content

Latest commit

 

History

History
76 lines (60 loc) · 2.83 KB

kb-diagram-missing-when-referencing-telerik-nuget-dlls.md

File metadata and controls

76 lines (60 loc) · 2.83 KB
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

Environment

Product Version 2019.1.305
Product RadDiagram for WPF

Description

The control (like RadDiagram, RadButton, etc.) is missing when referencing the following NuGet packages in the project.

[XML]

{{region kb-diagram-missing-when-referencing-telerik-nuget-dlls-0}} {{endregion}}

The version and the targetFramework are not relevant in this case.

Solution

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.

Solution #1

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.

Solution #2

Reference the theme dll package. Below you can find the name of the package for the Fluent theme.

[XML]

{{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:

[XAML]

{{region kb-diagram-missing-when-referencing-telerik-nuget-dlls-2}} <ResourceDictionary.MergedDictionaries> </ResourceDictionary.MergedDictionaries> {{endregion}}

See Also

  • [Available Themes]({%slug common-styling-appearance-available-themes%})