using ToastNotifications.Core; namespace DesktopApp_main.View.Toasts { /// /// Interaction logic for CustomDisplayPart.xaml /// public partial class CustomDisplayPart : NotificationDisplayPart { private CustomNotification _customNotification; public CustomDisplayPart(CustomNotification customNotification) { _customNotification = customNotification; DataContext = customNotification; // this allows to bind ui with data in notification InitializeComponent(); //<--Doesn't allow build here! "...'InitializeComponent' does not exist" } } }