Questions tagged [eventsetter]

28 questions
15
votes
2 answers

Visual Studio XAML Designer error XDG0062 using EventSetter in .NET Core WPF application

While porting a WPF project from .NET Framework to .NET Core I ran into a problem with the XAML-Designer in VS2019 v16.3.10. It keeps throwing XDG0062 errors when I try to use EventSetter in styles. The code compiles and runs fine, but the errors…
BBockisch
  • 175
  • 1
  • 1
  • 3
15
votes
1 answer

EventSetters in Theme ResourceDictionary

MSDN says on event setters: Event setters cannot be used in a style that is contained in a theme resource dictionary. This is because a theme resource dictionary at run time is often loose binary XAML (BAML) files, and does not have any scope…
O. R. Mapper
  • 20,083
  • 9
  • 69
  • 114
10
votes
2 answers

Dynamically set event handler using DataTrigger

iv'e got several itemscontrols which i need to attach an event handler for their PreviewMouseLeftButtonDown event only when a certain condition is met . iv'e designed a style for my controls with a datatrigger ,i checked out it's bindings and tried…
eran otzap
  • 12,293
  • 20
  • 84
  • 139
4
votes
1 answer

How to use Angular setter when Input changed?

I have two components Parent Component and Child component, I have an API that takes place in the Parent component and the response value is passed to the child component. currently I am using ngOnChanges but I want to know how to use Setters…
Ali
  • 1,633
  • 7
  • 35
  • 58
4
votes
1 answer

Assigning a command to the EventSetter

How to assign a command to the Handler in EventSetter, I want to to write this: