Open StephaneDelcroix opened 3 months ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
We get the same exception by the compiled binding:
Workaround: We had to replace a few Bindings with DataTriggers with the same Binding applied. I assume that DataTrigger Bindings are not using compiled bindings. However, we have a lot other similar Bindings on the same Pages which work correctly.
Update: The generated code for the compiled binding uses the wrong type to cast.
// Property of the DataModel
public IReadOnlyList<AnalogOutputNeutralConfigModel> AvailableNeutralConfigs { get; }
The casting to IReadOnlyCollection<FaultType>
is wrong here:
// Generated code in the Page
bindingExtension22.Converter = greater;
bindingExtension22.Path = "AvailableNeutralConfigs.Count";
bindingExtension22.TypedBinding = new TypedBinding<AnalogOutputSignalModel, int>(delegate(AnalogOutputSignalModel P_0)
{
object obj6 = P_0;
if (obj6 != null)
{
obj6 = ((AnalogOutputSignalModel)obj6).AvailableNeutralConfigs;
if (obj6 != null)
{
return (((IReadOnlyCollection<FaultType>)obj6).Count, true);
}
}
return default((int, bool));
}, null, new Tuple<Func<AnalogOutputSignalModel, object>, string>[2]
{
new Tuple<Func<AnalogOutputSignalModel, object>, string>((AnalogOutputSignalModel P_0) => P_0, "AvailableNeutralConfigs"),
new Tuple<Func<AnalogOutputSignalModel, object>, string>((AnalogOutputSignalModel P_0) => P_0.AvailableNeutralConfigs, "Count")
});
BindingBase binding21 = ((IMarkupExtension<BindingBase>)bindingExtension22).ProvideValue((IServiceProvider)null);
grid6.SetBinding(VisualElement.IsVisibleProperty, binding21);
Note: AnalogOutputNeutralConfigModel
is a reference type (record
), FaultType
is a value type (enum
).
Description
Using XamlC, I get an EntryPointNotFoundException with nested resources
Steps to Reproduce
(and the associated code behind for test:)
Link to public reproduction project repository
No response
Version with bug
9.0.0-preview.6.24327.7
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows, macOS, Other (Tizen, Linux, etc. not supported by Microsoft directly)
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response