WinUI-Gallery: Bindings page crashes

Which version of the app?

WinUI 3 Gallery

Description

NonExistentProperty does not seem to be defined.

Steps to reproduce:

  • Clone repository
  • F5 the main branch`
  • Click on the Binding tab under XAML fundamentals

Screenshots

No response

Windows version

No response

Additional context

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 20 (20 by maintainers)

Commits related to this issue

Most upvoted comments

Something like this?

private void DebugSettings_BindingFailed(object sender, BindingFailedEventArgs e)
{
    // Ignore the exception from NonExistentProperty in BindingPage.xaml, 
    // as the sample code intentionally includes a binding failure.
    if (e.Message.Contains("NonExistentProperty"))
    {
        return;
    }

    throw new Exception($"A debug binding failed: " + e.Message);
}

Lets roll with that, thanks you!

It breaks on NonExistentProperty in a binding. Got the same thing here 😃