Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I got this binding error in the debug output, it only happens when I put it in an "if...else..." section. #175

Open
IronEaterBeast opened this issue Nov 25, 2023 · 3 comments

Comments

@IronEaterBeast
Copy link

IronEaterBeast commented Nov 25, 2023

`[Binding]Error in binding to 'Avalonia.Input.KeyBinding'.'Command': 'Null value in expression '{empty}' at ''.'(KeyBinding #32324290)

[Binding]Error in binding to 'Avalonia.Controls.RowDefinition'.'Height': 'Null value in expression '{empty}' at ''.'(RowDefinition #22483156)

[Binding]Error in binding to 'Avalonia.Controls.RowDefinition'.'Height': 'Null value in expression '{empty}' at ''.'(RowDefinition #1021814)`

@CreateLab
Copy link
Member

CreateLab commented Nov 25, 2023

May u give a code sample?

@punker76
Copy link

punker76 commented Jan 18, 2024

I got the same errors showing at the output window if I use the sample from the readme

  private async void SplashTitle_OnPointerPressed(object? sender, PointerPressedEventArgs e) {
    var box = MessageBoxManager
      .GetMessageBoxStandard("Caption", "Are you sure you would like to delete appender_replace_page_1?",
                             ButtonEnum.YesNo);

    var result = await box.ShowAsync();
  }

I got this errors after executing the code a second time. For the first time no error occurs.

It's also reproducible with the example 2.0

@punker76
Copy link

I think this could be the issue: AvaloniaUI/Avalonia#5762

punker76 added a commit to punker76/MessageBox.Avalonia that referenced this issue Jan 19, 2024
punker76 added a commit to punker76/MessageBox.Avalonia that referenced this issue Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants