I want to create simple utility class that has no visual elements and create it in XAML so I can define databindings. I tried to create class derived from DependencyObject and create it in Window.Resources section but it doesn’t call any constructor.
I want to create simple utility class that has no visual elements and create
Share
Looks like instances are created when you actually use them. I’ve found dirty workaround for this problem – to place
FindResource("myClass");in main form constructor.