Relative Content

Tag Archive for c#wpfdata-bindingdatatemplateselector

Data Template Selector only hitted once and not on Update of Full-Property

`In a C# WPF Project I have a a ContentControl in the MainWindow. I bind to the whole MainViewModel wich is my DataContext. Only bind on my StreamDeckViewModel “StreamDeck” didn’t work. My DataTemplateSelector is just hitted once but not when I change the value of the InputMode in my KeyViewModel. The KeyViewModel is in the StreamDeckViewModel which is in the MainViewModel. I use the NuGet CommunityToolkit.mvvm, all my ViewModels inherit from ObservableObject and I use Full-Properties with their backingfields.