MessageBox.Avalonia icon indicating copy to clipboard operation
MessageBox.Avalonia copied to clipboard

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

Open IronEaterBeast opened this issue 2 years ago • 3 comments

`[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)`

IronEaterBeast avatar Nov 25 '23 07:11 IronEaterBeast

May u give a code sample?

CreateLab avatar Nov 25 '23 11:11 CreateLab

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 avatar Jan 18 '24 19:01 punker76

I think this could be the issue: https://github.com/AvaloniaUI/Avalonia/issues/5762

punker76 avatar Jan 19 '24 07:01 punker76