C# WPF Project - Unable to use RadNotityIcon

1 Answer 81 Views
NotifyIcon
Lenin
Top achievements
Rank 1
Lenin asked on 02 Apr 2024, 01:58 PM | edited on 02 Apr 2024, 01:59 PM

Hi Team,

I'm trying to add a RadNotifyIcon into my telerik wpf project, but it keeps throwing the error  below in xaml file

"the name RadNotifyIcon does not exist in the current namespace".

    <telerik:RadNotifyIcon x:Name="NotifyIcon"
                                       ShowTrayIcon="False"
                                       TrayIconSource="/NotifyIcon;component/Icons/TelerikWPFNotifyIcon.ico"
                                       PopupContentTemplate="{StaticResource NotifyIconPopupContentTemplate}" />

I did follow the below options , but still not working.

  1. clean and rebuild project
  2. adding reference to the telerik.windows.controls and telerik.windows.controls.navigation
  3. deleting obj and bin folder and rebuild project
  4. close and open visual studio
  5. restart my windows 
  6. change build platform to x86 from anycpu and vice versa.

the visual studio version I'm using is Microsoft Visual Studio Community 2022 (64-bit) - Current, Version 17.4.3

Any suggestion will be helpful.

Thanks,

Lenin.

 

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 03 Apr 2024, 07:26 AM

Hello Lenin,

The error message suggests that you are missing some references. Please make sure to add the following references: 

  • Telerik.Windows.Controls
  • Telerik.Windows.Controls.Navigation

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com
Lenin
Top achievements
Rank 1
commented on 07 Jul 2024, 03:37 PM

Thanks for the response Dimitar.

till now i have not included a radnotify icon into my project, it still says the same error.

please take a look at the attachment, also i have included both of these dll's into the wpf project and the build action is set to true only. please help.

  • Telerik.Windows.Controls
  • Telerik.Windows.Controls.Navigation

Stenly
Telerik team
commented on 10 Jul 2024, 12:52 PM

Hello Lenin,

If the application builds and runs, the observed behavior can be a design-time error. If this is indeed the case, may I ask if you could give the following article a try?

Resolving Design Time Errors - Telerik UI for WPF

If this does not help, could you try to isolate this behavior in a sample project?

Tags
NotifyIcon
Asked by
Lenin
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or