Describe the bug
Visual Studio reports this binding failure in CharacterCreation.xaml:
Cannot find governing FrameworkElement or FrameworkContentElement for target element.
DataContext is null for ModifiedValue Visibility.
To Reproduce
Steps to reproduce the behavior:
- Run from source.
- See the error in XAML Binding Failures debug window.
Expected behavior
Visibility should be binding to HasRaceAttributeModifiers but this is a DataGridTextColumn within a DataGrid where ItemsSource is PlayerAttributes. HasRaceAttributeModifiers is on the view model itself.
Additional context
Functionally this is not an issue because the test game in the tutorial has races, so the Modified column will always display. If none of the races had any attribute modifiers, then the column was intended to not be displayed.