Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

XAML Binding Failure in CharacterCreation for ModifiedValue Visibility #72

@mkenig5

Description

@mkenig5

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:

  1. Run from source.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions